Skip to content

Commit

Permalink
refactor: remove unnecessary <=
Browse files Browse the repository at this point in the history
  • Loading branch information
KaylaKremer committed Jun 23, 2023
1 parent e746250 commit 6e35f2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const toHHMM = (input) => {
total = Math.abs(total);
const hours = Math.floor(total / 60);
let minutes = total % 60;
if (minutes >= 59.5 && minutes <= 60) {
if (minutes >= 59.5 && minutes < 60) {
minutes = Math.floor(minutes);
} else {
minutes = Math.round(minutes);
Expand Down

0 comments on commit 6e35f2e

Please sign in to comment.