From 9144f612087f3cc40ddae1d39d18fefaa37c2dfb Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Thu, 26 Jun 2025 18:13:53 -0500 Subject: [PATCH] Fix geo debug bug --- src/state/geolocation.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/state/geolocation.tsx b/src/state/geolocation.tsx index 4e85db3a6c..9e8d555ad6 100644 --- a/src/state/geolocation.tsx +++ b/src/state/geolocation.tsx @@ -183,7 +183,7 @@ export function useGeolocation() { if (__DEV__) { // @ts-ignore window.setGeolocation = (geo: Device['geolocation']) => { - if (!geo?.countryCode || !geo?.isAgeRestrictedGeo) { + if (!geo?.countryCode || typeof geo?.isAgeRestrictedGeo !== 'boolean') { throw new Error( `Expected {countryCode: string, isAgeRestrictedGeo: boolean}`, )