Skip to content

Commit

Permalink
fix Address component's ens avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
technophile-04 committed Jul 4, 2023
1 parent bc9ae63 commit da14bc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nextjs/components/scaffold-eth/Address.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export const Address = ({ address, disableAddressLink, format, size = "base" }:

const { data: fetchedEns } = useEnsName({ address, enabled: isAddress(address ?? ""), chainId: 1 });
const { data: fetchedEnsAvatar } = useEnsAvatar({
name: address,
enabled: isAddress(address ?? ""),
name: fetchedEns,
enabled: Boolean(fetchedEns),
chainId: 1,
cacheTime: 30_000,
});
Expand Down

0 comments on commit da14bc9

Please sign in to comment.