Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MathiasSJacobsen committed Nov 9, 2020
1 parent c523dee commit 213a105
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Frontend/utils.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ const calculateEndTime = (startTime, minUsed) => {
if (min < 10){
min = "0" + min
}
const final_hours = parseInt(hours_min[0]) + hours;
let final_hours = (parseInt(hours_min[0]) + hours) % 24;
if (final_hours.toString.length < 2 ) {
final_hours = "0" + final_hours
}
const final = final_hours + ":" + min;

return final;
Expand Down

0 comments on commit 213a105

Please sign in to comment.