forked from Mirrors/keyoxide-web
fix: use correct property to generate icon URL
This commit is contained in:
parent
b1bc1328eb
commit
86b2b35462
1 changed files with 2 additions and 2 deletions
|
@ -65,8 +65,8 @@ export class Claim extends HTMLElement {
|
||||||
root.querySelector('.info .subtitle').innerText = claimJson.display.serviceProviderName ??
|
root.querySelector('.info .subtitle').innerText = claimJson.display.serviceProviderName ??
|
||||||
(claim.status < 300 ? '???' : '---');
|
(claim.status < 300 ? '???' : '---');
|
||||||
root.querySelector('.info img').setAttribute('src',
|
root.querySelector('.info img').setAttribute('src',
|
||||||
`https://design.keyoxide.org/brands/service-providers/${claimJson.display.serviceProviderName
|
`https://design.keyoxide.org/brands/service-providers/${claimJson.display.serviceProviderId
|
||||||
? claimJson.display.serviceProviderName.toLowerCase() : '_'}/icon.svg`);
|
? claimJson.display.serviceProviderId : '_'}/icon.svg`);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (claim.status >= 200) {
|
if (claim.status >= 200) {
|
||||||
|
|
Loading…
Reference in a new issue