Skip to content

Commit

Permalink
fix: total value
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarsen136 committed Aug 13, 2023
1 parent 881a3b7 commit 9eb4954
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/transfer/Transfer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,12 @@ watch(sendSameAmount, (value) => {
})
const totalTokenAmount = computed(() =>
Number(getNumberSumOfObjectField(targetAddresses.value, 'token')).toFixed(4)
Number(
Number(getNumberSumOfObjectField(targetAddresses.value, 'token')).toFixed(4)
)
)
const totalUsdValue = computed(() =>
getNumberSumOfObjectField(targetAddresses.value, 'usd')
calculateUsdFromKsm(totalTokenAmount.value, Number(currentTokenValue.value))
)
const currentTokenValue = computed(() => getCurrentTokenValue(unit.value))
Expand Down

0 comments on commit 9eb4954

Please sign in to comment.