File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/nfts/components
packages/thirdweb/src/extensions/erc721/lazyMinting/read Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ export const NFTRevealButton: React.FC<NFTRevealButtonProps> = ({
70
70
) ;
71
71
}
72
72
73
- return batchesQuery . data ?. length ? (
73
+ return (
74
74
< MinterOnly contract = { contract } >
75
75
< Sheet open = { open } onOpenChange = { setOpen } >
76
76
< SheetTrigger asChild >
@@ -168,5 +168,5 @@ export const NFTRevealButton: React.FC<NFTRevealButtonProps> = ({
168
168
</ SheetContent >
169
169
</ Sheet >
170
170
</ MinterOnly >
171
- ) : null ;
171
+ ) ;
172
172
} ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import * as TokenURI from "../../__generated__/IERC721A/read/tokenURI.js";
15
15
export interface BatchToReveal {
16
16
batchId : bigint ;
17
17
batchUri : string ;
18
- placeholderMetadata : NFTMetadata ;
18
+ placeholderMetadata : NFTMetadata | undefined ;
19
19
}
20
20
21
21
/**
@@ -82,7 +82,7 @@ export async function getBatchesToReveal(
82
82
tokenId : BigInt ( i ) ,
83
83
tokenUri : uri ,
84
84
client : options . contract . client ,
85
- } ) ;
85
+ } ) . catch ( ( ) => undefined ) ;
86
86
} ) ,
87
87
) ;
88
88
You can’t perform that action at this time.
0 commit comments