diff --git a/src/hooks/useAccountENSDomains.ts b/src/hooks/useAccountENSDomains.ts index c9923dfa606..f50aaef778d 100644 --- a/src/hooks/useAccountENSDomains.ts +++ b/src/hooks/useAccountENSDomains.ts @@ -14,7 +14,7 @@ const STALE_TIME = 10000; async function fetchAccountENSDomains({ accountAddress }: { accountAddress: string }) { const result = await fetchAccountDomains(accountAddress); - if (!result.account) return []; + if (!result?.account) return []; const { domains: controlledDomains, registrations } = result.account; const registarDomains = registrations?.map(({ domain }) => domain);