aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--routes/users.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/users.js b/routes/users.js
index 4644cc06..725a14e7 100644
--- a/routes/users.js
+++ b/routes/users.js
@@ -170,7 +170,7 @@ app.post("/user", auth, async (req, res) => {
});
}
- user.unit = unit;
+ if (unit) user.unit = unit;
user.currency = currency;
user.currencies = currencies;