about summary refs log tree commit diff
path: root/src/components
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2025-08-28 06:20:06 -0500
committerGitHub <noreply@github.com>2025-08-28 04:20:06 -0700
commit2a54781ce0e9f0764a9bb70008ef7c7798a1f5e0 (patch)
tree6d4ddbefb3db5a32b0cdd88e353b195bd248b1a4 /src/components
parentdcba5c46683875009cea3ccdb22cda9167f16217 (diff)
downloadvoidsky-2a54781ce0e9f0764a9bb70008ef7c7798a1f5e0.tar.zst
Update dev env (#8921)
* Update dev-env

* Integrate appviewDid value from dev-env

* Use correct env value to disable policy update overlay

* Remove log
Diffstat (limited to 'src/components')
-rw-r--r--src/components/PolicyUpdateOverlay/context.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/PolicyUpdateOverlay/context.tsx b/src/components/PolicyUpdateOverlay/context.tsx
index abb058d3c..3c65ae375 100644
--- a/src/components/PolicyUpdateOverlay/context.tsx
+++ b/src/components/PolicyUpdateOverlay/context.tsx
@@ -12,6 +12,7 @@ import {
   type PolicyUpdateState,
   usePolicyUpdateState,
 } from '#/components/PolicyUpdateOverlay/usePolicyUpdateState'
+import {ENV} from '#/env'
 
 const Context = createContext<{
   state: PolicyUpdateState
@@ -45,8 +46,7 @@ export function Provider({children}: {children?: ReactNode}) {
   const [isReadyToShowOverlay, setIsReadyToShowOverlay] = useState(false)
   const state = usePolicyUpdateState({
     // only enable the policy update overlay in non-test environments
-    enabled:
-      isReadyToShowOverlay && hasSession && process.env.NODE_ENV !== 'test',
+    enabled: isReadyToShowOverlay && hasSession && ENV !== 'e2e',
   })
 
   const ctx = useMemo(