fix: auto select ethiopian when chosing the coop option

This commit is contained in:
Nathnael
2026-08-12 08:25:39 +00:00
parent 85bdaa4afb
commit 2a3a231665
2 changed files with 7 additions and 2 deletions

View File

@@ -169,7 +169,8 @@ export default function OnboardingWizardDialog({
setCooperative(checked);
if (checked) {
setRoles((prev) => prev.filter((r) => r !== "freight_forwarder"));
setNationality((prev) => (prev === "foreign" ? "ethiopian" : prev));
// Ethiopian is then the only answer left, so it is made rather than asked.
setNationality("ethiopian");
}
}, []);
const [documentFiles, setDocumentFiles] = useState<