fix invoice input

This commit is contained in:
callebtc 2022-11-07 18:29:54 +01:00
parent 9ad18ba292
commit d955e434b0

View File

@ -1225,7 +1225,16 @@ page_container %}
},
decodeRequest: function () {
let reqtype = null
let req = this.camera.data
let req = null
// get request
if (this.camera.data) {
// get request from camera
req = this.camera.data
} else if (this.payInvoiceData.data.request) {
// get request from pay invoice dialog
req = this.payInvoiceData.data.request
}
if (req.toLowerCase().startsWith('lnbc')) {
this.payInvoiceData.data.request = req
reqtype = 'bolt11'