Skip to content

Commit

Permalink
Merge funket ikke ;__;
Browse files Browse the repository at this point in the history
  • Loading branch information
Magnus committed Nov 10, 2020
1 parent 7d415f5 commit c7fbf42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Frontend/utils.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ const calculateEndTime = (startTime, minUsed) => {
min = "0" + min
}
let final_hours = (parseInt(hours_min[0]) + hours) % 24;
if (final_hours.toString.length < 2 ) {
final_hours = "0" + final_hours
if (final_hours < 10 ) {
final_hours = "0" + final_hours;
}
const final = final_hours + ":" + min;

Expand Down

0 comments on commit c7fbf42

Please sign in to comment.