From b298587c0b8c76bcf85a112585f7a9a4c1100eb8 Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Mon, 22 Jan 2018 23:20:03 +1100 Subject: Bug fix --- src/js/utils.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/js/utils.js') 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); -- cgit v1.2.3