fix ctx check!!

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