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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user