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}`, )