Skip to content

Commit

Permalink
cohost undefined fix
Browse files Browse the repository at this point in the history
  • Loading branch information
14ROVI committed Feb 1, 2023
1 parent 1381818 commit f25f142
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ function displayEvent(event) {

sponsorsContainer.innerHTML = "";
if (kioskOptions.show_sponsors) {
for (let cohost of event.attributes.cohost) {
for (let cohost of event.attributes.cohost || []) {
let company = findCompany(cohost.company);
let logoURL = "https://cssbristol.co.uk/assets/images/contrib/companies/" + company.attributes.logo;

Expand Down

0 comments on commit f25f142

Please sign in to comment.