Skip to content

Commit

Permalink
fix(frontend): filter docs for 'radie'
Browse files Browse the repository at this point in the history
  • Loading branch information
pYassine committed Nov 7, 2024
1 parent 07e3342 commit 77966b7
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,18 @@ export class ProfilStructureDocsComponent implements OnInit, OnDestroy {
) {
this.docs.push(this.getDefaultCustomDoc("courrier_radiation"));
}

if (this.usager.decision.statut !== "RADIE") {
this.docs.filter(
(doc) => doc.customDocType === "courrier_radiation"
);
}

if (!this.usager.echeanceInfos.isActif) {
this.docs.filter(
(doc) => doc.customDocType === "attestation_postale"
);
}
},
})
);
Expand Down

0 comments on commit 77966b7

Please sign in to comment.