Improve logic to show most relevant error message in AA restricted regions (#10522)

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Eric Bailey <git@esb.lol>
This commit is contained in:
surfdude29
2026-05-26 16:45:07 +01:00
committed by GitHub
parent 4e2949c93a
commit 68431182ef
+4 -11
View File
@@ -308,17 +308,10 @@ export function StepInfo({
<Admonition.Icon />
<Admonition.Content>
<Admonition.Text>
{!isOverAppMinAccessAge ? (
<Plural
value={MIN_ACCESS_AGE}
other="You must be # years of age or older to create an account."
/>
) : (
<Plural
value={aaRegionConfig.minAccessAge}
other="You must be # years of age or older to create an account in your region."
/>
)}
<Plural
value={aaRegionConfig.minAccessAge}
other="You must be # years of age or older to create an account in your region."
/>
</Admonition.Text>
{IS_NATIVE &&
!isDeviceGeolocationGranted &&