Merge pull request #3061 from marc1006/fix

Fix getStartDayOfWeek once again :)
This commit is contained in:
Lauri Ojansivu 2020-04-28 23:53:24 +03:00 committed by GitHub
commit 4c3907bd41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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() {