Skip to content

Commit 77966b7

Browse files
committed
fix(frontend): filter docs for 'radie'
1 parent 07e3342 commit 77966b7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

packages/frontend/src/app/modules/usager-profil/components/_documents/profil-structure-documents/profil-structure-docs.component.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,18 @@ export class ProfilStructureDocsComponent implements OnInit, OnDestroy {
113113
) {
114114
this.docs.push(this.getDefaultCustomDoc("courrier_radiation"));
115115
}
116+
117+
if (this.usager.decision.statut !== "RADIE") {
118+
this.docs.filter(
119+
(doc) => doc.customDocType === "courrier_radiation"
120+
);
121+
}
122+
123+
if (!this.usager.echeanceInfos.isActif) {
124+
this.docs.filter(
125+
(doc) => doc.customDocType === "attestation_postale"
126+
);
127+
}
116128
},
117129
})
118130
);

0 commit comments

Comments
 (0)