Skip to content

Commit

Permalink
Update Month.vue
Browse files Browse the repository at this point in the history
Fixed minute rounding error.
  • Loading branch information
magicsunday authored Aug 30, 2018
1 parent 0e35e68 commit 41c198a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Month.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
Expand Down

0 comments on commit 41c198a

Please sign in to comment.