misc: moved to using router push instead of reload

This commit is contained in:
Sheen Capadngan
2024-05-27 22:59:24 +08:00
parent 3639a7fc18
commit a0f678a295

View File

@@ -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;
});