Skip to content

Commit

Permalink
functions.js: Handle eliteicons not being defined yet
Browse files Browse the repository at this point in the history
Possibly fixes #1445
  • Loading branch information
reedy authored Jan 3, 2024
1 parent 9a4f574 commit 0b8bd5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 "";
}

Expand Down

0 comments on commit 0b8bd5a

Please sign in to comment.