From 41c198a8276c25ef0fc3a6d4781121076ceb2af3 Mon Sep 17 00:00:00 2001 From: Rico Sonntag Date: Thu, 30 Aug 2018 08:30:51 +0200 Subject: [PATCH] Update Month.vue Fixed minute rounding error. --- src/pages/Month.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Month.vue b/src/pages/Month.vue index ee23396..fc3914d 100644 --- a/src/pages/Month.vue +++ b/src/pages/Month.vue @@ -128,7 +128,7 @@ export default { if (!minutesByDay.hasOwnProperty(entry.date)) { minutesByDay[entry.name] = 0 } - const minutes = entry.hours * 60 + const minutes = Math.round(entry.hours * 60) minutesByDay[entry.name] += minutes sum.worked += minutes })