aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
Diffstat (limited to 'routes')
-rw-r--r--routes/invoices.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/invoices.js b/routes/invoices.js
index 16abab84..6e0fe358 100644
--- a/routes/invoices.js
+++ b/routes/invoices.js
@@ -64,7 +64,7 @@ app.post("/invoice", optionalAuth, async (req, res, next) => {
let address, unconfidential, text;
if (amount < 0) throw new Error("amount out of range");
- if (tip > 5 * amount || tip > 1000000 || tip < 0)
+ if (tip > 5 * amount || tip < 0)
throw new Error("tip amount out of range");
if (!user) ({ user } = req);