Skip to content

Commit

Permalink
fix: duration test
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianavillar committed May 9, 2024
1 parent eb61559 commit 4aeb4e3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const roundToTwoDecimals = (num: number) => {

export const getDurationByMinutes = (minutes: number, decimalFormat = false) => {
if (decimalFormat) {
return roundToTwoDecimals(Math.abs(minutes))
return roundToTwoDecimals(Math.abs(minutes / 60))
}

return minutes > 0 ? getHumanizedDuration({ duration: minutes }) : '0h'
Expand Down

0 comments on commit 4aeb4e3

Please sign in to comment.