fix dialog close error

This commit is contained in:
Tiago Vasconcelos 2023-03-15 11:53:10 +00:00
parent 809429c9d2
commit 1e56fa11a0

View file

@ -189,7 +189,6 @@ async function customerStall(path) {
} }
}, },
closeQrCodeDialog() { closeQrCodeDialog() {
this.qrCodeDialog.dismissMsg()
this.qrCodeDialog.show = false this.qrCodeDialog.show = false
}, },
async placeOrder() { async placeOrder() {
@ -345,9 +344,8 @@ async function customerStall(path) {
let json = JSON.parse(text) let json = JSON.parse(text)
if (json.id != this.activeOrder) return if (json.id != this.activeOrder) return
if (json.payment_options) { if (json.payment_options) {
let payment_request = json.payment_options.find( let payment_request = json.payment_options.find(o => o.type == 'ln')
o => o.type == 'ln' .link
).link
if (!payment_request) return if (!payment_request) return
this.loading = false this.loading = false
this.qrCodeDialog.data.payment_request = payment_request this.qrCodeDialog.data.payment_request = payment_request