allow users to disclose nationality without asserting the value to a specific country

This commit is contained in:
turnoffthiscomputer
2024-11-02 18:32:49 +01:00
parent 0fe0881484
commit f58ac831a1
13 changed files with 2902 additions and 1609 deletions

View File

@@ -226,7 +226,9 @@ const ProveScreen: React.FC<ProveScreenProps> = ({ setSheetRegisterIsOpen }) =>
case 'minimumAge':
return `I am older than ${option.value} years old.`;
case 'nationality':
return `I have a valid passport from ${option.value}.`;
return option.value === 'Any'
? `The issuer country of my passport.`
: `I have a valid passport from ${option.value}.`;
case 'excludedCountries':
return option.value.length > 0
? `I am not part of the following countries: ${option.value