diff --git a/src/state/service-config.tsx b/src/state/service-config.tsx index 128e131746..4676128116 100644 --- a/src/state/service-config.tsx +++ b/src/state/service-config.tsx @@ -97,7 +97,7 @@ export function useCanGoLive(did?: string) { export function useCheckEmailConfirmed() { const ctx = useContext(CheckEmailConfirmedContext) - if (typeof ctx === 'undefined') { + if (ctx === null) { throw new Error( 'useCheckEmailConfirmed must be used within a ServiceConfigManager', )