Allow user to deselect all days during week

This commit is contained in:
Keith Holliday
2017-05-22 08:37:45 -06:00
parent fefaed368a
commit 280b720c13
2 changed files with 3 additions and 1 deletions
@@ -393,10 +393,11 @@ angular.module('habitrpg')
var options = angular.copy(user);
options.nextDue = true;
var nextDueDates = Shared.shouldDo(new Date, task, options);
if (!nextDueDates) return '';
let dateFormat = 'MM-DD-YYYY';
if (user.preferences.dateFormat) dateFormat = user.preferences.dateFormat.toUpperCase();
console.log(dateFormat);
var nextDue = nextDueDates.map(function (date) {
return date.format(dateFormat);
});