mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 06:26:27 +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) {
|
if (triesLeft) {
|
||||||
setTriesLeft((left) => {
|
setTriesLeft((left) => {
|
||||||
if (triesLeft === 1) {
|
if (triesLeft === 1) {
|
||||||
window.location.reload();
|
router.push("/");
|
||||||
}
|
}
|
||||||
return (left as number) - 1;
|
return (left as number) - 1;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user