From 1280e6971e4d2f4cff25eb5987b53be94cce5704 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Mon, 11 Aug 2025 14:35:47 +0300 Subject: [PATCH] fix ctx 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 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', )