From bac5d230a7f0d93089a2d73927ffb0e6b4592590 Mon Sep 17 00:00:00 2001 From: Joshen Lim Date: Mon, 24 Jul 2023 10:36:41 +0800 Subject: [PATCH] Use window.location.href instead of router.push on approve success --- studio/pages/authorize.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/studio/pages/authorize.tsx b/studio/pages/authorize.tsx index 042083b849d..e0cd2f02f89 100644 --- a/studio/pages/authorize.tsx +++ b/studio/pages/authorize.tsx @@ -31,7 +31,7 @@ const APIAuthorizationPage: NextPageWithLayout = () => { const { mutate: approveRequest, isLoading: isApproving } = useApiAuthorizationApproveMutation({ onSuccess: (res) => { - router.push(res.url) + window.location.href = res.url }, }) const { mutate: declineRequest, isLoading: isDeclining } = useApiAuthorizationDeclineMutation({