From 70ef8ecc6f40d99d3441b2720ca8b55cb8926a97 Mon Sep 17 00:00:00 2001 From: Alaister Young Date: Tue, 30 Jul 2024 21:04:15 +0800 Subject: [PATCH] fix: sign up redirect (#28279) --- apps/studio/components/layouts/SignInLayout/SignInLayout.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/apps/studio/components/layouts/SignInLayout/SignInLayout.tsx b/apps/studio/components/layouts/SignInLayout/SignInLayout.tsx index cf65385a68b..056ecd46d17 100644 --- a/apps/studio/components/layouts/SignInLayout/SignInLayout.tsx +++ b/apps/studio/components/layouts/SignInLayout/SignInLayout.tsx @@ -63,11 +63,6 @@ const SignInLayout = ({ await queryClient.resetQueries() router.push(getReturnToPath()) - } else { - // if the user doesn't have a token, he needs to go back to the sign-in page - const redirectTo = buildPathWithParams('/sign-in') - router.replace(redirectTo) - return } }) .catch(() => {}) // catch all errors thrown by auth methods