Skip to content

Commit

Permalink
fix balance precision (200,000 => 199,999.9999998) (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
aliel committed Jun 21, 2023
1 parent 3c1144b commit 01c6f5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/Stake.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
<q-btn-dropdown size="md" class="q-ml-sm" color="aleph-radial" label="Create node" v-if="account">
<!-- start: dropdown item list -->
<q-list>
<q-item clickable v-close-popup @click="showCCNDialog(true)" :disabled="!((account && (balance_info.ALEPH >= 200000))&&(user_node===null))">
<q-item clickable v-close-popup @click="showCCNDialog(true)" :disabled="!((account && (Math.round(balance_info.ALEPH) >= 200000))&&(user_node===null))">
<q-item-section>
<q-item-label>Core Channel Node</q-item-label>
</q-item-section>
Expand Down Expand Up @@ -491,7 +491,7 @@ export default {
}
},
showCCNDialog (value) {
if ((this.account && (this.balance_info.ALEPH >= 200000)) && (this.user_node === null)) {
if ((this.account && (Math.round(this.balance_info.ALEPH) >= 200000)) && (this.user_node === null)) {
this.createNode = value
}
}
Expand Down

0 comments on commit 01c6f5a

Please sign in to comment.