aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--routes/users.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/routes/users.js b/routes/users.js
index 855e804d..1fa04c6b 100644
--- a/routes/users.js
+++ b/routes/users.js
@@ -169,13 +169,8 @@ app.post("/user", auth, async (req, res) => {
});
}
- user.currencies = currencies;
user.currency = currency;
- if (currencies.length) {
- if (!currencies.includes(currency)) user.currency = currencies[0];
- } else {
- user.currency = null;
- }
+ user.currencies = currencies;
user.twofa = twofa;
user.pin = pin;