diff --git a/src/state/service-config.tsx b/src/state/service-config.tsx index 628a219269..128e131746 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 (!ctx) { + if (typeof ctx === 'undefined') { throw new Error( 'useCheckEmailConfirmed must be used within a ServiceConfigManager', )