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 2e80f26 commit 4d2d4f5
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 4d2d4f5

Please sign in to comment.