diff --git a/js/functions.js b/js/functions.js index 4bf60cb4..981e347e 100644 --- a/js/functions.js +++ b/js/functions.js @@ -196,7 +196,7 @@ function getDST(element) { * @returns {string} */ function getEliteIcon(e, validity = "") { - if (!e || e === "" || eliteicons[e] === undefined) { + if (!e || e === "" || eliteicons === undefined || eliteicons[e] === undefined) { return ""; }