about summary refs log tree commit diff
path: root/src/state/geolocation.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/state/geolocation.tsx')
-rw-r--r--src/state/geolocation.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/state/geolocation.tsx b/src/state/geolocation.tsx
index 4d45bb574..0024cd41d 100644
--- a/src/state/geolocation.tsx
+++ b/src/state/geolocation.tsx
@@ -3,7 +3,6 @@ import EventEmitter from 'eventemitter3'
 
 import {networkRetry} from '#/lib/async/retry'
 import {logger} from '#/logger'
-import {IS_DEV} from '#/env'
 import {Device, device} from '#/storage'
 
 const events = new EventEmitter()
@@ -65,7 +64,7 @@ export function beginResolveGeolocation() {
    * In dev, IP server is unavailable, so we just set the default geolocation
    * and fail closed.
    */
-  if (IS_DEV) {
+  if (__DEV__) {
     geolocationResolution = new Promise(y => y())
     device.set(['geolocation'], DEFAULT_GEOLOCATION)
     return