File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
apps/dashboard/src/components/contract-components/publisher Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { useThirdwebClient } from "@/constants/thirdweb.client";
44import { Flex , Skeleton } from "@chakra-ui/react" ;
55import { useTrack } from "hooks/analytics/useTrack" ;
66import { replaceDeployerAddress } from "lib/publisher-utils" ;
7+ import { ZERO_ADDRESS } from "thirdweb" ;
78import {
89 AccountAddress ,
910 AccountAvatar ,
@@ -41,7 +42,11 @@ export const PublisherHeader: React.FC<PublisherHeaderProps> = ({
4142 Published by
4243 </ Heading >
4344
44- < AccountProvider address = { ensQuery . data ?. address || "" } client = { client } >
45+ < AccountProvider
46+ // passing zero address during loading time to prevent the component from crashing
47+ address = { ensQuery . data ?. address || ZERO_ADDRESS }
48+ client = { client }
49+ >
4550 < div className = "flex items-center gap-4" >
4651 < Link
4752 href = { replaceDeployerAddress (
You can’t perform that action at this time.
0 commit comments