mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
misc: moved to using router push instead of reload
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user