HashLips / hashlips_nft_minting_dapp

HashLips minting dapp is a quick and easy way to connect your smart contract and start minting NFTs.
MIT License
1.02k stars 984 forks source link

Uncaught runtime errors if i cancel the minting transaction. #159

Open mandududdudu opened 1 year ago

mandududdudu commented 1 year ago

Hi, I deploy the code to my local environment. When I click "buy", it will show up the metamask pop up which is what I expected. But when I click reject / "X" on the top right corner to rescind the transaction, it will pop up an error.

image

I know that I can click "X" on the top right corner of the pop-up window to make the error disappear. But I think this is not proper to deal with the error.

Can anyone help? I appreciate it. Thank you very much.