From 6257e088e153cc6130390e3ae91de127253fe028 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Tue, 5 Nov 2024 23:38:12 +0100 Subject: [PATCH] Fix duplicate 'failed to create invoice' --- wallets/blink/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wallets/blink/server.js b/wallets/blink/server.js index f21f92970..30163560a 100644 --- a/wallets/blink/server.js +++ b/wallets/blink/server.js @@ -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