mirror of
https://github.com/lnbits/lnbits.git
synced 2025-04-23 15:04:23 +02:00
fix: handle no input signed scenario
This commit is contained in:
parent
40ca51af0e
commit
337234cb0c
@ -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
|
||||
})
|
||||
},
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user