From 9628532489de113d7a2dad55995a4d79c304f8ab Mon Sep 17 00:00:00 2001 From: vineyardbovines Date: Thu, 7 May 2026 11:03:07 -0400 Subject: [PATCH] account for potential region fallthroughs on native --- .../ageAssurance/AgeAssuranceAccountCard.tsx | 66 ++++++++----------- 1 file changed, 28 insertions(+), 38 deletions(-) diff --git a/src/components/ageAssurance/AgeAssuranceAccountCard.tsx b/src/components/ageAssurance/AgeAssuranceAccountCard.tsx index b82594ab61..0c95f0abc7 100644 --- a/src/components/ageAssurance/AgeAssuranceAccountCard.tsx +++ b/src/components/ageAssurance/AgeAssuranceAccountCard.tsx @@ -258,8 +258,6 @@ function RegionNotice() { const locationControl = Dialog.useDialogControl() const region = formatRegion(geolocation, i18n.locale) - if (!region) return null - const isGPS = !!deviceGeolocation?.countryCode return ( @@ -289,47 +287,39 @@ function RegionNotice() { /> )} - - {isGPS ? ( - - Based on your device's location, we think you're in{' '} - {region}. - Some features are limited because of regional age laws. - - ) : ( - - Based on your network, we think you're in{' '} - {region}. - Some features are limited because of regional age laws. - - )} - - - {!isGPS && - (IS_NATIVE ? ( - + {region && ( + + {isGPS ? ( - This estimate may be inaccurate if you're using a - VPN.{' '} - { - locationControl.open() - })}> - Tap here to confirm your location. - + Based on your device's location, we think you're in{' '} + + {region} + + . Some features are limited because of regional age + laws. - - ) : ( - + ) : ( - This estimate may be inaccurate if you're using a - VPN. + Based on your network, we think you're in{' '} + + {region} + + . Some features are limited because of regional age + laws. - - ))} + )} + + )} - {isGPS && IS_NATIVE && ( + {region && !isGPS && ( + + + This estimate may be inaccurate if you're using a VPN. + + + )} + + {IS_NATIVE && (