Fixed minor bugs during code cleaning

This commit is contained in:
Vladyslav Matsiiako
2023-01-17 19:03:43 -08:00
parent 7ae73d1b62
commit 18fbe82535
13 changed files with 38 additions and 33 deletions
@@ -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);