Skip to content

Commit

Permalink
clean up time formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ebshimizu committed Dec 27, 2018
1 parent eafc89d commit 8db607f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/util/formatters.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
// formats to mm:ss
function formatSeconds(val) {
if (isNaN(val))
return '--:--';

let invert = false;
if (val < 0)
invert = true;
Expand Down

0 comments on commit 8db607f

Please sign in to comment.