From c0b045a82b9905c927db145078873ffc13d6e727 Mon Sep 17 00:00:00 2001 From: Kenny4444 Date: Fri, 25 Feb 2022 13:25:15 -0800 Subject: [PATCH] Fix issue with no being able to set supply to 0 --- src/actions/mintNFT.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actions/mintNFT.ts b/src/actions/mintNFT.ts index c47fe09..26aed9a 100644 --- a/src/actions/mintNFT.ts +++ b/src/actions/mintNFT.ts @@ -94,7 +94,7 @@ export const mintNFT = async ({ updateAuthority: wallet.publicKey, mint: mint.publicKey, mintAuthority: wallet.publicKey, - maxSupply: maxSupply || maxSupply === 0 ? new BN(maxSupply) : null, + maxSupply: maxSupply || maxSupply >= 0 ? new BN(maxSupply) : null, }, );