fix invoice input

This commit is contained in:
callebtc
2022-12-01 12:21:25 +01:00
committed by dni ⚡
parent 7160154214
commit f44faac9b6
@@ -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'