aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
Diffstat (limited to 'routes')
-rw-r--r--routes/invoices.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/routes/invoices.js b/routes/invoices.js
index ccf741f5..02a8308d 100644
--- a/routes/invoices.js
+++ b/routes/invoices.js
@@ -31,8 +31,6 @@ app.post(
let { liquidAddress, id, invoice, user, tx } = req.body;
let { blindkey } = invoice;
- if (invoice.text.text) invoice.text = invoice.text.text;
-
if (invoice.amount < 0) throw new Error("amount out of range");
if (invoice.tip > invoice.amount || invoice.tip > 1000000 || invoice.tip < 0)
throw new Error("tip amount out of range");