From 78ec2a6bc696bff6aa03dd5aa2f187ea4cd978ff Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Tue, 19 Sep 2023 13:00:28 +0200 Subject: [PATCH] fix: clean up code --- static-src/kx-claim.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/static-src/kx-claim.js b/static-src/kx-claim.js index b7b16f3..75e7e40 100644 --- a/static-src/kx-claim.js +++ b/static-src/kx-claim.js @@ -61,8 +61,6 @@ export class Claim extends HTMLElement { const claimJson = JSON.parse(value); const claim = doipjs.Claim.fromJson(claimJson); - console.log(claimJson); - root.querySelector('.info .title').innerText = claimJson.display.name; root.querySelector('.info .subtitle').innerText = claimJson.display.serviceProviderName ?? (claim.status < 300 ? '???' : '---'); @@ -70,14 +68,11 @@ export class Claim extends HTMLElement { try { if (claim.status >= 200) { root.setAttribute('data-status', claim.status < 300 ? 'success' : 'failed'); - // root.querySelector('.icons .verificationStatus').setAttribute('data-value', claim.status < 300 ? 'success' : 'failed'); } else { root.setAttribute('data-status', 'running'); - // root.querySelector('.icons .verificationStatus').setAttribute('data-value', 'running'); } } catch (error) { root.setAttribute('data-status', 'failed'); - // root.querySelector('.icons .verificationStatus').setAttribute('data-value', 'failed'); } const elContent = root.querySelector('.content');