mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 14:59:29 -07:00
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 .title').innerText = claimJson.display.name;
|
||||||
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', `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 {
|
try {
|
||||||
if (claim.status >= 200) {
|
if (claim.status >= 200) {
|
||||||
|
|
Loading…
Reference in a new issue