mirror of
https://github.com/Sosokker/B2D-Ventures.git
synced 2025-12-19 14:04:06 +01:00
fix: correct success state handling in user ID fetching logic
This commit is contained in:
parent
a04a3a228f
commit
2d79e5d898
@ -102,11 +102,12 @@ export default function ApplyBusiness() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
setSucess(false);
|
|
||||||
} else {
|
} else {
|
||||||
|
setSucess(true);
|
||||||
console.error("User ID is undefined.");
|
console.error("User ID is undefined.");
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
setSucess(true);
|
||||||
console.error("Error fetching user ID:", error);
|
console.error("Error fetching user ID:", error);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user