Skip to content

Commit a4a9305

Browse files
Fix upload button media not working (#2354)
* Fix upload button media not working * format * Update mint-form.tsx Signed-off-by: Jonas Daniels <[email protected]> --------- Signed-off-by: Jonas Daniels <[email protected]> Co-authored-by: Jonas Daniels <[email protected]>
1 parent 03496e9 commit a4a9305

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contract-ui/tabs/nfts/components/mint-form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ export const NFTMintForm: React.FC<NFTMintForm> = ({
416416
maxContainerWidth={"200px"}
417417
value={mediaFileUrl}
418418
showUploadButton
419-
showPreview={!!mediaFileUrl}
419+
showPreview={nft?.metadata ? !!mediaFileUrl : true}
420420
setValue={setFile}
421421
border="1px solid"
422422
borderColor="gray.200"

0 commit comments

Comments
 (0)