From 507de94761e0dff53e8418c88e13b6c84eeef5f3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Eike=20Ha=C3=9F?=
Date: Thu, 15 Aug 2024 20:07:45 +0200
Subject: [PATCH] enhance DID display
---
web/src/pages/Company/CompanyData.tsx | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/web/src/pages/Company/CompanyData.tsx b/web/src/pages/Company/CompanyData.tsx
index 695803b..5e6c972 100644
--- a/web/src/pages/Company/CompanyData.tsx
+++ b/web/src/pages/Company/CompanyData.tsx
@@ -121,7 +121,7 @@ const CompanyData: React.FC = () => {
}, [state, relevantCredential])
useEffect(() => {
- if (!dispatch || !state || !issuerDID || state.validatedDomains[issuerDID]) return;
+ if (!dispatch || !issuerDID || !state) return;
dispatch?.({ type: Actions.REQUEST_DOMAIN_LINKAGE_VALIDATION, did: issuerDID });
setIssuerDomains(state.validatedDomains[issuerDID])
@@ -151,12 +151,12 @@ const CompanyData: React.FC = () => {
relevantCredential.issuer
}
- to {relevantCredential.credentialSubject.id}
+ {credentialsDomains && (credentialsDomains !== 'in-flight') && (
+
+ )}
+ to {relevantCredential.credentialSubject.id}
>
}
- {credentialsDomains && (credentialsDomains !== 'in-flight') && (
-
- )}
{
// Object.keys(prefilledFormData.dataFields).length &&
@@ -179,7 +179,7 @@ const CompanyData: React.FC = () => {
{issuerDomains && (issuerDomains !== 'in-flight') && (
)}
- to {state.COMPANY_HOUSE?.connectedDID}
+ to {state.COMPANY_HOUSE?.connectedDID}
>
}