Update Navigate to Replace
This commit is contained in:
parent
4ba7defaf8
commit
b80013dba1
1 changed files with 2 additions and 2 deletions
|
|
@ -55,11 +55,11 @@ export default function Login() {
|
||||||
// Temp for Testing
|
// Temp for Testing
|
||||||
// if (!auth) {
|
// if (!auth) {
|
||||||
// setTimeout(() => {
|
// setTimeout(() => {
|
||||||
// router.navigate('./incidents');
|
// router.replace('./incidents');
|
||||||
// }, 1000);
|
// }, 1000);
|
||||||
// }
|
// }
|
||||||
if (auth) {
|
if (auth) {
|
||||||
router.navigate('./incidents');
|
router.replace('./incidents');
|
||||||
}
|
}
|
||||||
}, [auth])
|
}, [auth])
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue