mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-04-14 19:56:23 +00:00
fix custom day start, @lefnire we may have to restore old values or make a bailey announcement about this, also client-side the validation prevents deleting the old value, it only allows to use the increase/decrease button or selecting the old value and replacing it
This commit is contained in:
parent
a196cc0586
commit
d3eed2282c
1 changed files with 1 additions and 2 deletions
|
|
@ -258,8 +258,7 @@ UserSchema.virtual('tasks').get(function () {
|
|||
|
||||
UserSchema.pre('save', function(next) {
|
||||
//this.markModified('tasks');
|
||||
|
||||
if (_.isNaN(this.preferences.dayStart) || this.preferences.dayStart < 0 || this.preferences.dayStart > 0) {
|
||||
if (_.isNaN(this.preferences.dayStart) || this.preferences.dayStart < 0 || this.preferences.dayStart > 24) {
|
||||
this.preferences.dayStart = 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue