diff --git a/static-src/kx-claim.js b/static-src/kx-claim.js index 4c7557a..e2800df 100644 --- a/static-src/kx-claim.js +++ b/static-src/kx-claim.js @@ -64,7 +64,9 @@ export class Claim extends HTMLElement { root.querySelector('.info .title').innerText = claimJson.display.name; root.querySelector('.info .subtitle').innerText = claimJson.display.serviceProviderName ?? (claim.status < 300 ? '???' : '---'); - root.querySelector('.info img').setAttribute('src', `https://design.keyoxide.org/brands/service-providers/${claimJson.display.serviceProviderName.toLowerCase() || '_'}/icon.svg`); + root.querySelector('.info img').setAttribute('src', + `https://design.keyoxide.org/brands/service-providers/${claimJson.display.serviceProviderName + ? claimJson.display.serviceProviderName.toLowerCase() : '_'}/icon.svg`); try { if (claim.status >= 200) {