mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-08 05:25:41 +00:00
fix: auto select ethiopian when chosing the coop option
This commit is contained in:
@@ -169,7 +169,8 @@ export default function OnboardingWizardDialog({
|
|||||||
setCooperative(checked);
|
setCooperative(checked);
|
||||||
if (checked) {
|
if (checked) {
|
||||||
setRoles((prev) => prev.filter((r) => r !== "freight_forwarder"));
|
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<
|
const [documentFiles, setDocumentFiles] = useState<
|
||||||
|
|||||||
@@ -29,7 +29,11 @@ export default function NationalitySelect({
|
|||||||
<SimpleGrid cols={{ base: 1, sm: excludeForeign ? 1 : 2 }} spacing="md">
|
<SimpleGrid cols={{ base: 1, sm: excludeForeign ? 1 : 2 }} spacing="md">
|
||||||
<RoleCard
|
<RoleCard
|
||||||
label="Ethiopian Company"
|
label="Ethiopian Company"
|
||||||
description="Registered in Ethiopia. You'll provide a TIN certificate, commercial registration and national ID."
|
description={
|
||||||
|
excludeForeign
|
||||||
|
? "Registered in Ethiopia. You'll provide a TIN certificate, your co-operative registration certificate and national ID."
|
||||||
|
: "Registered in Ethiopia. You'll provide a TIN certificate, commercial registration and national ID."
|
||||||
|
}
|
||||||
icon={<MapPin size={22} />}
|
icon={<MapPin size={22} />}
|
||||||
selected={value === "ethiopian"}
|
selected={value === "ethiopian"}
|
||||||
onClick={() => onChange("ethiopian")}
|
onClick={() => onChange("ethiopian")}
|
||||||
|
|||||||
Reference in New Issue
Block a user