Show regional age error for under-13 users in restricted regions
When a region has a stricter minimum age than the global minimum (e.g., 16 in Australia), users entering a birthdate below 13 were shown the global "must be 13" message instead of the regional "must be 16" one. Select the message based on whether the region has a stricter minimum, not on which threshold the user falls under. Any birthdate below the regional minimum now consistently shows the regional message.
This commit is contained in:
@@ -308,16 +308,16 @@ export function StepInfo({
|
|||||||
<Admonition.Icon />
|
<Admonition.Icon />
|
||||||
<Admonition.Content>
|
<Admonition.Content>
|
||||||
<Admonition.Text>
|
<Admonition.Text>
|
||||||
{!isOverAppMinAccessAge ? (
|
{aaRegionConfig.minAccessAge > MIN_ACCESS_AGE ? (
|
||||||
<Plural
|
|
||||||
value={MIN_ACCESS_AGE}
|
|
||||||
other="You must be # years of age or older to create an account."
|
|
||||||
/>
|
|
||||||
) : (
|
|
||||||
<Plural
|
<Plural
|
||||||
value={aaRegionConfig.minAccessAge}
|
value={aaRegionConfig.minAccessAge}
|
||||||
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 in your region."
|
||||||
/>
|
/>
|
||||||
|
) : (
|
||||||
|
<Plural
|
||||||
|
value={MIN_ACCESS_AGE}
|
||||||
|
other="You must be # years of age or older to create an account."
|
||||||
|
/>
|
||||||
)}
|
)}
|
||||||
</Admonition.Text>
|
</Admonition.Text>
|
||||||
{IS_NATIVE &&
|
{IS_NATIVE &&
|
||||||
|
|||||||
Reference in New Issue
Block a user