Fix webln usage

This commit is contained in:
bumi 2020-10-24 10:43:23 +02:00
parent d20a73b0a0
commit 37ebaf3834
1 changed files with 2 additions and 2 deletions

View File

@ -101,12 +101,12 @@ class LnMe {
payWithWebln() {
if (!webln.isEnabled) {
webln.enable().then((weblnResponse) => {
return webln.sendPayment({ paymentRequest: this.invoice.payment_request })
return webln.sendPayment(this.invoice.payment_request);
}).catch((e) => {
return this.showPaymentRequest();
})
} else {
return webln.sendPayment({ paymentRequest: this.invoice.payment_request })
return webln.sendPayment(this.invoice.payment_request);
}
}