Skip to content

Commit

Permalink
fix: enterprise missing info check
Browse files Browse the repository at this point in the history
  • Loading branch information
jonat75 committed Mar 22, 2024
1 parent 2f99849 commit 27c80bd
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,19 +106,19 @@ export const prepareDataWithExistingDeclaration = async (
entreprise: {
...baseFormData.entreprise,
entrepriseDéclarante: {
adresse: company?.firstMatchingEtablissement.address.includes("[ND]")
adresse: company.firstMatchingEtablissement.address?.includes("[ND]")
? "Information non diffusible"
: company?.firstMatchingEtablissement.address,
codeNaf: company.activitePrincipaleUniteLegale,
codePostal: company.firstMatchingEtablissement?.codePostalEtablissement.includes("[ND]")
codePostal: company.firstMatchingEtablissement?.codePostalEtablissement?.includes("[ND]")
? undefined
: company.firstMatchingEtablissement?.codePostalEtablissement,
codePays: company.firstMatchingEtablissement?.codePaysEtrangerEtablissement
? COUNTRIES_COG_TO_ISO[company.firstMatchingEtablissement?.codePaysEtrangerEtablissement]
: undefined,
raisonSociale: company.simpleLabel,
siren,
commune: company.firstMatchingEtablissement?.libelleCommuneEtablissement.includes("[ND]")
commune: company.firstMatchingEtablissement?.libelleCommuneEtablissement?.includes("[ND]")
? undefined
: company.firstMatchingEtablissement?.libelleCommuneEtablissement,
département: countyCode,
Expand Down

0 comments on commit 27c80bd

Please sign in to comment.