Skip to content

Commit

Permalink
Gestion de la suppression de scolarité sur la gestion des enfants (#4697
Browse files Browse the repository at this point in the history
)

* feat: gestion de suppression de la scolarité

* feat: modification du libellé
  • Loading branch information
jenovateurs authored Nov 12, 2024
1 parent 1c3d434 commit 56da8db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lib/state/blocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,11 @@ function individuBlockFactory(id, chapter?: ChapterName) {
subject,
datesGenerator(situation.dateDeValeur).today.value
)
return 2 <= age && age <= 25
const active = 2 <= age && age <= 25
if (!active) {
subject.scolarite = null
}
return active
},
steps: [r("scolarite")],
},
Expand Down
2 changes: 1 addition & 1 deletion src/views/simulation/enfants.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<span>{{ nationality(enfant.nationalite) }}</span>
</p>
<p class="fr-col-4 fr-m-0">
<span class="fr-text--sm">Sa situation</span><br />
<span class="fr-text--sm">Sa scolarité</span><br />
<span>{{ scolarite(enfant.scolarite) }}</span>
</p>
</div>
Expand Down

0 comments on commit 56da8db

Please sign in to comment.