From 4c4489517f57dbe34caf7db5bf6e2a40bf092d76 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Wed, 1 May 2019 16:36:50 -0300 Subject: [PATCH] fix bolt11 passing to webln. --- src/webln.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webln.js b/src/webln.js index 9968809..276a213 100644 --- a/src/webln.js +++ b/src/webln.js @@ -36,7 +36,7 @@ class WebLNProvider { if (typeof args !== 'object') { args = {amount: args} } - return this._prompt(PROMPT_INVOICE, args).then(bolt11 => ({ + return this._prompt(PROMPT_INVOICE, args).then(({bolt11}) => ({ paymentRequest: bolt11 })) })