1
1
mirror of https://github.com/bumi/lntip synced 2025-07-25 16:16:57 +00:00

Fix webln usage

This commit is contained in:
bumi 2020-10-24 10:43:23 +02:00
parent d20a73b0a0
commit 37ebaf3834

View File

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