Skip to content

Commit

Permalink
add check for preferences['count-today'] after checking for current date
Browse files Browse the repository at this point in the history
  • Loading branch information
NetizenAbel authored and thamara committed Apr 19, 2020
1 parent cbc91c7 commit 8d2d9d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ class Calendar {
continue;
}
var isToday = (now.getDate() === day && now.getMonth() === this.month && now.getFullYear() === this.year);
if (isToday) {
if (isToday && !!preferences['count-today']) {
//balance considers only up until yesterday
break;
}
Expand Down

0 comments on commit 8d2d9d6

Please sign in to comment.