diff --git a/hooks/contractHooks.ts b/hooks/contractHooks.ts index 49d9a47..c1c68a8 100644 --- a/hooks/contractHooks.ts +++ b/hooks/contractHooks.ts @@ -117,7 +117,7 @@ export const attachContract = { - if (address === '' || address === ZERO_ADDRESS) { + if (!address || address === ZERO_ADDRESS) { return null; } @@ -140,7 +140,7 @@ export const attachInterface = ( address: string, provider: JsonRpcProvider | null, ): C | null => { - if (address === '' || address === ZERO_ADDRESS) { + if (!address || address === ZERO_ADDRESS) { return null; }