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";
4
4
import { Flex , Skeleton } from "@chakra-ui/react" ;
5
5
import { useTrack } from "hooks/analytics/useTrack" ;
6
6
import { replaceDeployerAddress } from "lib/publisher-utils" ;
7
+ import { ZERO_ADDRESS } from "thirdweb" ;
7
8
import {
8
9
AccountAddress ,
9
10
AccountAvatar ,
@@ -41,7 +42,11 @@ export const PublisherHeader: React.FC<PublisherHeaderProps> = ({
41
42
Published by
42
43
</ Heading >
43
44
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
+ >
45
50
< div className = "flex items-center gap-4" >
46
51
< Link
47
52
href = { replaceDeployerAddress (
You can’t perform that action at this time.
0 commit comments