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
|
||||
// if (!auth) {
|
||||
// setTimeout(() => {
|
||||
// router.navigate('./incidents');
|
||||
// router.replace('./incidents');
|
||||
// }, 1000);
|
||||
// }
|
||||
if (auth) {
|
||||
router.navigate('./incidents');
|
||||
router.replace('./incidents');
|
||||
}
|
||||
}, [auth])
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue