Update src/features/login/hooks/use-consume-code.ts
CI/CD Pipeline / Build and Push PocketBase Docker Image (push) Successful in 9s
CI/CD Pipeline / i18n Catalog Check (push) Successful in 43s
CI/CD Pipeline / Deploy to Kubernetes (push) Canceled after 0s
CI/CD Pipeline / Build and Push App Docker Image (push) Canceled after 12s

This commit is contained in:
2026-09-21 12:15:00 -05:00
parent 9febb8bb60
commit 8fde1c9362
+1 -1
View File
@@ -21,7 +21,7 @@ const useConsumeCode = (onWrongCode: () => void) => {
} else { } else {
queryClient.setQueryData(playerKeys.auth, response.data); queryClient.setQueryData(playerKeys.auth, response.data);
toast.success(t`Successfully logged in. Welcome back!`); toast.success(t`Successfully logged in. Welcome back!`);
navigate({ to: '/' }) window.location.href = '/';
} }
} else if (data.status === 'INCORRECT_USER_INPUT_CODE_ERROR') { } else if (data.status === 'INCORRECT_USER_INPUT_CODE_ERROR') {
onWrongCode(); onWrongCode();