diff --git a/src/features/login/hooks/use-consume-code.ts b/src/features/login/hooks/use-consume-code.ts index f68308f..50cc549 100644 --- a/src/features/login/hooks/use-consume-code.ts +++ b/src/features/login/hooks/use-consume-code.ts @@ -21,7 +21,7 @@ const useConsumeCode = (onWrongCode: () => void) => { } else { queryClient.setQueryData(playerKeys.auth, response.data); toast.success(t`Successfully logged in. Welcome back!`); - navigate({ to: '/' }) + window.location.href = '/'; } } else if (data.status === 'INCORRECT_USER_INPUT_CODE_ERROR') { onWrongCode();