Skip to content

Commit

Permalink
Fix duplicate 'failed to create invoice'
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzyis committed Nov 5, 2024
1 parent 2e41724 commit 6257e08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wallets/blink/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export async function createInvoice (
const res = out.data.lnInvoiceCreate
const errors = res.errors
if (errors && errors.length > 0) {
throw new Error('failed to create invoice ' + errors.map(e => e.code + ' ' + e.message).join(', '))
throw new Error(errors.map(e => e.code + ' ' + e.message).join(', '))
}
const invoice = res.invoice.paymentRequest
return invoice
Expand Down

0 comments on commit 6257e08

Please sign in to comment.