🚧 More country is not rule

This commit is contained in:
Fred KISSIE
2026-06-25 21:26:13 +02:00
parent 65c383520b
commit 278375f7be
4 changed files with 25 additions and 2 deletions
@@ -79,6 +79,7 @@ export function createPolicyRuleValueSchema(t: TranslateFn, match: string) {
message: t("rulesErrorInvalidRegionDescription")
});
case "COUNTRY":
case "COUNTRY_IS_NOT":
return required.refine(
(value) => COUNTRIES.some((country) => country.code === value),
{ message: t("rulesErrorInvalidCountryDescription") }