diff --git a/packages/ensjs/src/utils/registerHelpers.ts b/packages/ensjs/src/utils/registerHelpers.ts index 5becf4a1..31a764ed 100644 --- a/packages/ensjs/src/utils/registerHelpers.ts +++ b/packages/ensjs/src/utils/registerHelpers.ts @@ -61,7 +61,7 @@ export type RegistrationTuple = [ const cryptoRef = (typeof crypto !== 'undefined' && crypto) || (typeof window !== 'undefined' && - typeof window.crypto !== undefined && + typeof window.crypto !== 'undefined' && window.crypto) || undefined