From a0f678a295fa810d081f7efc157cbc6cfcf15c34 Mon Sep 17 00:00:00 2001 From: Sheen Capadngan Date: Mon, 27 May 2024 22:59:24 +0800 Subject: [PATCH] misc: moved to using router push instead of reload --- frontend/src/views/Login/components/MFAStep/MFAStep.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/Login/components/MFAStep/MFAStep.tsx b/frontend/src/views/Login/components/MFAStep/MFAStep.tsx index 249c043b6..bf90b9cab 100644 --- a/frontend/src/views/Login/components/MFAStep/MFAStep.tsx +++ b/frontend/src/views/Login/components/MFAStep/MFAStep.tsx @@ -184,7 +184,7 @@ export const MFAStep = ({ email, password, providerAuthToken }: Props) => { if (triesLeft) { setTriesLeft((left) => { if (triesLeft === 1) { - window.location.reload(); + router.push("/"); } return (left as number) - 1; });