From 075a879b6f4f2d3ae1f90fe69cb998e498cf34d7 Mon Sep 17 00:00:00 2001 From: vineyardbovines Date: Thu, 7 May 2026 12:32:06 -0400 Subject: [PATCH] remove debugs --- .../ageAssurance/AgeAssuranceAccountCard.tsx | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/src/components/ageAssurance/AgeAssuranceAccountCard.tsx b/src/components/ageAssurance/AgeAssuranceAccountCard.tsx index ab04602224..b651ba4491 100644 --- a/src/components/ageAssurance/AgeAssuranceAccountCard.tsx +++ b/src/components/ageAssurance/AgeAssuranceAccountCard.tsx @@ -32,13 +32,6 @@ import { import {USRegionNameToRegionCode} from '#/geolocation/util' import {device, useStorage} from '#/storage' -// DEBUG: remove before merging. Forces the card to render with a fake region -// so the RegionNotice copy can be previewed/screenshotted locally. -const DEBUG_FORCE_REGION_PREVIEW = true -// DEBUG: when previewing, set true to render the GPS copy variant instead of -// the network copy variant. -const DEBUG_FORCE_GPS = true - const USRegionCodeToRegionName: {[regionCode: string]: string} = Object.fromEntries( Object.entries(USRegionNameToRegionCode).map(([name, code]) => [ @@ -66,8 +59,7 @@ function formatRegion( export function AgeAssuranceAccountCard({style}: ViewStyleProp & {}) { const aa = useAgeAssurance() - if (!DEBUG_FORCE_REGION_PREVIEW && aa.state.access === aa.Access.Full) - return null + if (aa.state.access === aa.Access.Full) return null if (aa.state.error === 'config') { return ( @@ -265,12 +257,8 @@ function RegionNotice() { const computeAgeAssuranceRegionAccess = useComputeAgeAssuranceRegionAccess() const locationControl = Dialog.useDialogControl() - const region = DEBUG_FORCE_REGION_PREVIEW - ? 'Switzerland' - : formatRegion(geolocation, i18n.locale) - const isGPS = DEBUG_FORCE_REGION_PREVIEW - ? DEBUG_FORCE_GPS - : !!deviceGeolocation?.countryCode + const region = formatRegion(geolocation, i18n.locale) + const isGPS = !!deviceGeolocation?.countryCode && IS_NATIVE return ( <>