Skip to content

Commit

Permalink
Fix for distributionpage
Browse files Browse the repository at this point in the history
bug that caused hour 23 to always be active even after uncheck
  • Loading branch information
whooze authored Nov 29, 2019
1 parent 4342eaa commit b7ab2ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/report_plugins/glucosedistribution.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ glucosedistribution.report = function report_glucosedistribution (datastorage, s

$('#glucosedistribution-days').text(days + ' ' + translate('days total'));

for (var i = 0; i < 23; i++) {
for (var i = 0; i < 24; i++) {
$('#glucosedistribution-' + i).unbind('click').click(onClick);
enabledHours[i] = $('#glucosedistribution-' + i).is(':checked');
}
Expand Down

0 comments on commit b7ab2ad

Please sign in to comment.