aboutsummaryrefslogtreecommitdiffstats
path: root/lib/payments.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/payments.ts')
-rw-r--r--lib/payments.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/payments.ts b/lib/payments.ts
index 807c87fa..9b7c807b 100644
--- a/lib/payments.ts
+++ b/lib/payments.ts
@@ -185,7 +185,7 @@ export const credit = async ({
amount = parseInt(amount) || 0;
let inv;
- if (type === PaymentType.bolt12) {
+ if (type === PaymentType.bolt12 && !hash.startsWith("lni")) {
const { invoices } = await ln.listinvoices({ invstring: hash });
const { local_offer_id } = invoices[0];
inv = await getInvoice(local_offer_id);