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}

}