From fb2a1a9f7262c58636b62fe1eee1b95e88a481c8 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 19 Feb 2021 21:46:21 -0800 Subject: instant lightning->liquid conversion --- routes/lightning/invoice.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'routes/lightning/invoice.js') diff --git a/routes/lightning/invoice.js b/routes/lightning/invoice.js index 701ed3c2..140a3002 100644 --- a/routes/lightning/invoice.js +++ b/routes/lightning/invoice.js @@ -1,5 +1,6 @@ module.exports = ah(async (req, res) => { - const { amount, memo, tip } = req.body; + let { amount, memo, tip } = req.body; + if (!tip) tip = 0; try { if (config.lna.clightning) { -- cgit v1.2.3