Fix geo debug bug

This commit is contained in:
Eric Bailey
2025-06-26 18:13:53 -05:00
parent f25eb23e95
commit 9144f61208
+1 -1
View File
@@ -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}`,
)