Skip to content

Commit

Permalink
fix condition (#542)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ornella452 authored Sep 24, 2024
1 parent d7a4646 commit 5f66dc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const CardsRenouvellement = ({ miseEnRelation, setOpenModal, urlDossierDS, handl
<strong className="fr-text--md">Salaire brut mensuel</strong><br />
<span className="fr-text--regular fr-text--md">
{miseEnRelation?.salaire || demandeInitiee?.salaireSouhaitee ?
`${demandeInitiee ? demandeInitiee?.salaireSouhaitee : miseEnRelation?.salaire} €` : '-'}
`${demandeInitiee?.salaireSouhaitee ? demandeInitiee?.salaireSouhaitee : miseEnRelation?.salaire} €` : '-'}
</span>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/views/connected/structure/utils/functionUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export function getDateFin(conseiller) {

export function getSalaire(conseiller) {
const demandeInitiee = getDemandeInitiee(conseiller);
if (demandeInitiee) {
if (demandeInitiee?.salaireSouhaitee) {
return String(demandeInitiee.salaireSouhaitee);
} else if (conseiller?.salaire) {
return String(conseiller?.salaire);
Expand Down

0 comments on commit 5f66dc6

Please sign in to comment.