Merge pull request #891 from betagouv/fix-recherche-entreprise

🐛 Recherche d'entreprise: gère le cas de domiciliation inconnue
pull/898/head
Johan Girod 2020-02-18 18:37:26 +01:00 committed by GitHub
commit e390ce6106
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 5 deletions

View File

@ -43,12 +43,17 @@ export default function CompanyDetails({ siren, denomination }: Etablissement) {
<Skeleton width={80} />
)}
</strong>
, <Trans>domiciliée à</Trans>{' '}
,&nbsp;
{company ? (
<>
<strong>{company.etablissement_siege.libelle_commune}</strong> (
{company.etablissement_siege.code_postal})
</>
company?.etablissement_siege ? (
<>
<Trans>domiciliée à</Trans>{' '}
<strong>{company.etablissement_siege.libelle_commune}</strong> (
{company.etablissement_siege.code_postal})
</>
) : (
<Trans>domiciliation inconnue</Trans>
)
) : (
<Skeleton width={100} />
)}

View File

@ -370,6 +370,7 @@ créer:
titre: Create a company
warningPL: 'Note: the case of regulated liberal professions is not covered'
d'aides: of aid
domiciliation inconnue: unknown address
domiciliée à: domiciled in
déductible: deductible
déplier: show more