From bf73a567a2b7648187bbcff1e84f1599c44ddd59 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Mon, 11 Aug 2025 14:36:24 +0300 Subject: [PATCH] null check, not undef check --- src/state/service-config.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', )