Skip to content

Commit

Permalink
fix: change variable remainingDai to remainingAmount
Browse files Browse the repository at this point in the history
  • Loading branch information
ciniiia committed Jul 18, 2022
1 parent f23baf0 commit f612ecb
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
.menu-card__details(v-if="isDeficit && stakingFlow" style="color: red")
.menu-card__sub-title-medium Remaining Amount
.menu-card__price-medium
| {{ remainingDai }}
| {{ remainingAmount }}
| {{ dataService.currency}}

.menu-card__details(v-if="isBalanced && stakingFlow")
Expand Down Expand Up @@ -144,7 +144,7 @@
PayRemainingDialog(
:show="showPayRemainingDialog"
:amount="remainingDbio"
:amountInDai="remainingDai"
:amountInDai="remainingAmount"
@onContinue="onContinue"
@close="showPayRemainingDialog = false"
)
Expand Down Expand Up @@ -198,7 +198,7 @@ export default {
stakingAmount: 0,
remainingStaking: 0,
remainingDbio: 0,
remainingDai: 0,
remainingAmount: 0,
showPayRemainingDialog: false,
orderId: "",
isDeficit: false,
Expand Down Expand Up @@ -242,7 +242,7 @@ export default {
const debioBalance = await getDbioBalance()
const stakingAmount = Number(formatPrice(this.stakingData.staking_amount))
this.stakingAmount = (stakingAmount * debioBalance.dbioToDai).toFixed(3)
this.remainingDai = this.dataService.totalPrice - this.stakingAmount
this.remainingAmount = this.dataService.totalPrice - this.stakingAmount
this.excessAmount = this.stakingAmount - this.dataService.totalPrice
if (this.excessAmount > 0) {
Expand Down

0 comments on commit f612ecb

Please sign in to comment.