diff --git a/src/pages/options/index.js b/src/pages/options/index.js index 0066df0..62708f7 100644 --- a/src/pages/options/index.js +++ b/src/pages/options/index.js @@ -188,11 +188,13 @@ async function calcCustomInstances(frontend) { document.getElementById(frontend).getElementsByClassName("custom-checklist")[0].innerHTML = customInstances .map( x => { - const time = pingCache[x] - if (time) { - const { color, text } = processTime(time) - var timeText = `${text}` - } + const time = pingCache[x]; + if (time) { + var { color, text } = processTime(time); + } + const timeText = time + ? `${text}` + : ""; const custom = isCustomInstance(frontend, x) ? "" : `custom` return `