mirror of
https://github.com/Sosokker/B2D-Ventures.git
synced 2025-12-18 21:44: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 {
|
||||
setSucess(true);
|
||||
console.error("User ID is undefined.");
|
||||
}
|
||||
} catch (error) {
|
||||
setSucess(true);
|
||||
console.error("Error fetching user ID:", error);
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user