fix: show erro messages

This commit is contained in:
Vlad Stan
2022-08-03 13:50:07 +03:00
parent 59d960b5f9
commit b0216bff75
4 changed files with 36 additions and 75 deletions
@@ -53,11 +53,10 @@ async function payment(path) {
.reduce((t, a) => t + (a.amount || 0), 0)
},
changeAmount: function () {
return Math.max(
0,
return (
this.selectedAmount -
this.totalPayedAmount -
this.feeRate * this.txSizeNoChange
this.totalPayedAmount -
this.feeRate * this.txSizeNoChange
)
},
balance: function () {