fix: finalize logic
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 21:48:41 +02:00
parent cef4daef15
commit 85b4fe6a4c

View File

@ -34,10 +34,12 @@ onMounted(() => {
checkPending(
(response) => {
const isValidated = response.data === true;
if (isValidated) {
router.push("/JorCproject");
if (isValidated && roles.includes("MyINPulse-entrepreneur")) {
router.push("/canvas");
//router.push("/JorCproject");
} else {
router.push("/finalize");
router.push("/JorCproject");
//router.push("/finalize");
}
},
(error) => {