aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--routes/lnurl.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/lnurl.ts b/routes/lnurl.ts
index 4585e0b5..16f366d4 100644
--- a/routes/lnurl.ts
+++ b/routes/lnurl.ts
@@ -187,7 +187,7 @@ export default {
const id = v4();
await s(`lnurl:${id}`, uid);
- const total = (parseInt(invoice.amount) + parseInt(invoice.tip)) * 1000;
+ const total = (parseInt(invoice.amount || 0) + parseInt(invoice.tip || 0)) * 1000;
res.send({
allowsNostr: true,