forked from Mirrors/keyoxide-web
fix: avoid calling function on null
This commit is contained in:
parent
73dd948a33
commit
652bfe227e
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue