Skip to content

Commit

Permalink
🚑️ Fix typing issue of nft count
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Jan 24, 2024
1 parent 1636f0b commit 1906d32
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pages/mint-nft/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,9 @@ async function onClickMintByInputting () {
const { nfts } = await getNFTs({ classId: classId.value as string })
existingNftCount.value = nfts.length
}
if (typeof nftMintCount.value !== 'number') {
nftMintCount.value = Number(nftMintCount.value)
}
const csvDataString = generateCsvData({
prefix: state.nftIdPrefix,
nftMintCount: nftMintCount.value,
Expand Down

0 comments on commit 1906d32

Please sign in to comment.