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( checkPending(
(response) => { (response) => {
const isValidated = response.data === true; const isValidated = response.data === true;
if (isValidated) { if (isValidated && roles.includes("MyINPulse-entrepreneur")) {
router.push("/JorCproject"); router.push("/canvas");
//router.push("/JorCproject");
} else { } else {
router.push("/finalize"); router.push("/JorCproject");
//router.push("/finalize");
} }
}, },
(error) => { (error) => {