fix ctx check!!
This commit is contained in:
@@ -97,7 +97,7 @@ export function useCanGoLive(did?: string) {
|
|||||||
|
|
||||||
export function useCheckEmailConfirmed() {
|
export function useCheckEmailConfirmed() {
|
||||||
const ctx = useContext(CheckEmailConfirmedContext)
|
const ctx = useContext(CheckEmailConfirmedContext)
|
||||||
if (!ctx) {
|
if (typeof ctx === 'undefined') {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
'useCheckEmailConfirmed must be used within a ServiceConfigManager',
|
'useCheckEmailConfirmed must be used within a ServiceConfigManager',
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user