fix: max amount

This commit is contained in:
Vlad Stan
2022-08-03 13:50:07 +03:00
parent b576ef4f21
commit eedd0ee6a3
6 changed files with 32 additions and 24 deletions
@@ -96,7 +96,7 @@ async function utxoList(path) {
return wallet ? wallet.title : 'unknown'
},
getTotalSelectedUtxoAmount: function () {
const total = this.utxos
const total = (this.utxos || [])
.filter(u => u.selected)
.reduce((t, a) => t + (a.amount || 0), 0)
return total