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:
@@ -308,17 +308,10 @@ export function StepInfo({
|
|||||||
<Admonition.Icon />
|
<Admonition.Icon />
|
||||||
<Admonition.Content>
|
<Admonition.Content>
|
||||||
<Admonition.Text>
|
<Admonition.Text>
|
||||||
{!isOverAppMinAccessAge ? (
|
<Plural
|
||||||
<Plural
|
value={aaRegionConfig.minAccessAge}
|
||||||
value={MIN_ACCESS_AGE}
|
other="You must be # years of age or older to create an account in your region."
|
||||||
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."
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
</Admonition.Text>
|
</Admonition.Text>
|
||||||
{IS_NATIVE &&
|
{IS_NATIVE &&
|
||||||
!isDeviceGeolocationGranted &&
|
!isDeviceGeolocationGranted &&
|
||||||
|
|||||||
Reference in New Issue
Block a user