diff --git a/js/util/formatters.js b/js/util/formatters.js index 94e45bb..28eda44 100644 --- a/js/util/formatters.js +++ b/js/util/formatters.js @@ -1,5 +1,8 @@ // formats to mm:ss function formatSeconds(val) { + if (isNaN(val)) + return '--:--'; + let invert = false; if (val < 0) invert = true;