null check, not undef check

This commit is contained in:
Samuel Newman
2025-08-11 14:36:24 +03:00
parent 1280e6971e
commit bf73a567a2
+1 -1
View File
@@ -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',
)