fix: handle no input signed scenario

This commit is contained in:
Vlad Stan 2022-08-04 14:04:49 +03:00
parent 40ca51af0e
commit 337234cb0c
2 changed files with 13 additions and 1 deletions

View File

@ -423,10 +423,21 @@ async function serialSigner(path) {
},
handleSignResponse: function (res = '') {
this.hww.signingPsbt = false
this.updateSignedPsbt(res)
const [count, psbt] = res.trim().split(' ')
if (!psbt || !count || count.trim() === '0') {
this.$q.notify({
type: 'warning',
message: 'No input signed!',
caption: 'Are you using the right seed?',
timeout: 10000
})
return
}
this.updateSignedPsbt(psbt)
this.$q.notify({
type: 'positive',
message: 'Transaction Signed',
message: `Inputs signed: ${count}`,
timeout: 10000
})
},

View File

@ -191,6 +191,7 @@
label="Account Extended Public Key; xpub, ypub, zpub; Bitcoin Descriptor"
></q-input>
<q-select
v-if="!formDialog.useSerialPort"
filled
dense
emit-value