From 43d0c73d32513a6a8f2b130d18f2f55f9381c001 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Wed, 25 Jun 2025 16:52:21 -0500 Subject: [PATCH] Add geo prop --- src/state/geolocation.tsx | 2 ++ src/storage/schema.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/src/state/geolocation.tsx b/src/state/geolocation.tsx index 83a42f21d0..f2f2a6cf02 100644 --- a/src/state/geolocation.tsx +++ b/src/state/geolocation.tsx @@ -25,6 +25,7 @@ const onGeolocationUpdate = ( */ export const DEFAULT_GEOLOCATION: Device['geolocation'] = { countryCode: undefined, + isAgeRestrictedGeo: false, } async function getGeolocation(): Promise { @@ -39,6 +40,7 @@ async function getGeolocation(): Promise { if (json.countryCode) { return { countryCode: json.countryCode, + isAgeRestrictedGeo: json.isAgeRestrictedGeo ?? false, } } else { return undefined diff --git a/src/storage/schema.ts b/src/storage/schema.ts index 19c31834bb..710cacab88 100644 --- a/src/storage/schema.ts +++ b/src/storage/schema.ts @@ -7,6 +7,7 @@ export type Device = { lastNuxDialog: string | undefined geolocation?: { countryCode: string | undefined + isAgeRestrictedGeo: boolean } trendingBetaEnabled: boolean devMode: boolean