fix: handlers weren't used properly in the unauth code
Some checks failed
Format / formatting (push) Failing after 6s
Build / build (push) Successful in 42s
CI / build (push) Failing after 10s

This commit is contained in:
Mohamed Maoulainine Maoulainine
2025-05-10 23:35:30 +02:00
parent 4c15cab607
commit 6b49bbbe57
2 changed files with 20 additions and 11 deletions

View File

@ -25,19 +25,16 @@ onMounted(() => {
router.push("/admin");
return;
}
/*
if (roles.includes("MyINPulse-entrepreneur")) {
router.push("/canvas");
return;
}
}*/
checkPending(
(response) => {
const isValidated = response.data === true;
if (
isValidated &&
roles.includes("MyINPulse-entrepreneur")
) {
if (isValidated && roles.includes("MyINPulse-entrepreneur")) {
router.push("/canvas");
//router.push("/JorCproject");
} else {