aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--routes/payments.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/payments.js b/routes/payments.js
index c67e0f9b..400bb54d 100644
--- a/routes/payments.js
+++ b/routes/payments.js
@@ -24,7 +24,7 @@ export default {
let p;
- if (username.endsWith("@classic")) {
+ if (username && username.endsWith("@classic")) {
let { username: source } = user;
username = username.replace("@classic", "");
p = await debit(hash, amount, 0, memo, user, types.classic);