summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
Diffstat (limited to 'models')
-rw-r--r--models/users.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/models/users.js b/models/users.js
index 2d84141c..a1bc5b0f 100644
--- a/models/users.js
+++ b/models/users.js
@@ -530,8 +530,11 @@ Users.helpers({
getStartDayOfWeek() {
const profile = this.profile || {};
- // default is 'Monday' (1)
- return profile.startDayOfWeek || 1;
+ if (typeof profile.startDayOfWeek === 'undefined') {
+ // default is 'Monday' (1)
+ return 1;
+ }
+ return profile.startDayOfWeek;
},
getTemplatesBoardId() {