diff options
| author | Adam Soltys <[email protected]> | 2025-07-08 17:41:43 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-07-08 17:41:43 +0000 |
| commit | 9e6d7773f2b7de51d09aa8203ecdc854ef8f076f (patch) | |
| tree | 04d03ff428846d2bce68f2820537cbd9aab79ad5 | |
| parent | 8e5ac488b55d3fe84a5b8e4ba28310a9da2a6e0d (diff) | |
| download | coinos-server-9e6d7773f2b7de51d09aa8203ecdc854ef8f076f.tar.gz coinos-server-9e6d7773f2b7de51d09aa8203ecdc854ef8f076f.zip | |
handle empty amounts
| -rw-r--r-- | routes/lnurl.ts | 2 |
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, |
