Skip to content

Commit

Permalink
fix bolt11 passing to webln.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed May 1, 2019
1 parent bb2d27a commit 4c44895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webln.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}))
})
Expand Down

0 comments on commit 4c44895

Please sign in to comment.