aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/nwc.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nwc.ts b/lib/nwc.ts
index a9c8288d..c5209612 100644
--- a/lib/nwc.ts
+++ b/lib/nwc.ts
@@ -250,7 +250,7 @@ const handle = (method, params, user) =>
description: p.memo,
preimage: p.ref,
payment_hash,
- amount: p.amount * 1000,
+ amount: Math.abs(p.amount * 1000),
fees_paid: p.fee * 1000,
created_at,
expires_at: created_at + 7 * 24 * 60 * 60,