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
@@ -111,7 +111,6 @@ async function utxoList(path) {
this.applyUtxoSelectionMode()
},
applyUtxoSelectionMode: function () {
console.log('### this.utxoSelectAmount', this.utxoSelectAmount)
const mode = this.utxoSelectionMode
const isSelectAll = mode === 'Select All'
if (isSelectAll) {
@@ -119,10 +118,11 @@ async function utxoList(path) {
return
}
this.utxos.forEach(u => (u.selected = false))
const isManual = mode === 'Manual'
if (isManual || !this.utxoSelectAmount) return
this.utxos.forEach(u => (u.selected = false))
const isSmallerFirst = mode === 'Smaller Inputs First'
const isLargerFirst = mode === 'Larger Inputs First'
let selectedUtxos = this.utxos.slice()