Skip to content

Commit

Permalink
πŸ› Fix mint amount not bounded by defered max amount update
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Jun 30, 2023
1 parent f8b25fc commit c37e51b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pages/nft/iscn/_iscnId.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ import Long from 'long';
// eslint-disable-next-line import/no-extraneous-dependencies
import { OfflineSigner } from '@cosmjs/proto-signing'
import { parseAndCalculateStakeholderRewards } from '@likecoin/iscn-js/dist/iscn/parsing';
import { Vue, Component } from 'vue-property-decorator'
import { Vue, Component, Watch } from 'vue-property-decorator'
import { namespace } from 'vuex-class'
import { v4 as uuidv4 } from 'uuid'
import {
Expand Down Expand Up @@ -501,6 +501,13 @@ export default class NFTTestMintPage extends Vue {
}
}
@Watch('maxMintAmount')
onMaxMintAmount(max: number) {
if (this.mintAmount > max) {
this.mintAmount = max
}
}
handleClickButton() {
this.hasError = false
this.errorMessage = ''
Expand Down

0 comments on commit c37e51b

Please sign in to comment.