mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-16 08:14:06 +00:00
Fixed minor bugs during code cleaning
This commit is contained in:
@@ -204,7 +204,11 @@ const attemptLogin = async (
|
||||
}
|
||||
|
||||
if (isLogin) {
|
||||
router.push(`/dashboard/${localStorage.getItem('projectData.id')}`);
|
||||
if (localStorage.getItem('projectData.id') !== "undefined") {
|
||||
router.push(`/dashboard/${localStorage.getItem('projectData.id')}`);
|
||||
} else {
|
||||
router.push("/noprojects");
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
|
||||
Reference in New Issue
Block a user