Update dev env (#8921)

* Update dev-env

* Integrate appviewDid value from dev-env

* Use correct env value to disable policy update overlay

* Remove log
This commit is contained in:
Eric Bailey
2025-08-28 06:20:06 -05:00
committed by GitHub
parent dcba5c4668
commit 2a54781ce0
11 changed files with 205 additions and 126 deletions
@@ -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(