aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/utils.js')
-rw-r--r--src/js/utils.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/js/utils.js b/src/js/utils.js
index f82df2a4..abc2a89a 100644
--- a/src/js/utils.js
+++ b/src/js/utils.js
@@ -612,6 +612,11 @@ const utils = {
// Format time to UI friendly string
formatTime(time = 0, displayHours = false, inverted = false) {
+ // Bail if the value isn't a number
+ if (!utils.is.number(time)) {
+ return;
+ }
+
// Format time component to add leading zero
const format = value => `0${value}`.slice(-2);