From fc53688241938c7aa22efda5d6a216194bd9815f Mon Sep 17 00:00:00 2001 From: William Chong Date: Thu, 14 Mar 2024 16:43:11 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=94=20Change=20wnft=20default=20mint?= =?UTF-8?q?=20amount=20to=2032?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/nft/iscn/_iscnId.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pages/nft/iscn/_iscnId.vue b/pages/nft/iscn/_iscnId.vue index 3a8277e8..3888469f 100644 --- a/pages/nft/iscn/_iscnId.vue +++ b/pages/nft/iscn/_iscnId.vue @@ -186,6 +186,8 @@ export enum MintState { DONE = '' } +const DEFAULT_MINT_AMOUNT = 32 + @Component({ fetch({ params, redirect }) { if (!params.iscnId) { @@ -262,7 +264,7 @@ export default class NFTMintPage extends Vue { txStatus: string = '' reserveNft: number = 0 - mintAmount: number = this.maxMintAmount + mintAmount: number = Math.min(this.maxMintAmount, DEFAULT_MINT_AMOUNT) initialBatch: number = 6 shouldShowNoUrlWarning: boolean = false