From 86b2b354628564e8c86970c069f7cca42e1d3fff Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Tue, 3 Oct 2023 12:57:39 +0200 Subject: [PATCH] fix: use correct property to generate icon URL --- static-src/kx-claim.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static-src/kx-claim.js b/static-src/kx-claim.js index e2800df..187a0bb 100644 --- a/static-src/kx-claim.js +++ b/static-src/kx-claim.js @@ -65,8 +65,8 @@ export class Claim extends HTMLElement { 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 - ? claimJson.display.serviceProviderName.toLowerCase() : '_'}/icon.svg`); + `https://design.keyoxide.org/brands/service-providers/${claimJson.display.serviceProviderId + ? claimJson.display.serviceProviderId : '_'}/icon.svg`); try { if (claim.status >= 200) {