Skip to content

Commit

Permalink
feat(referential): use type diplome in label to create certification
Browse files Browse the repository at this point in the history
  • Loading branch information
fbonniec committed Nov 15, 2024
1 parent 7034785 commit 31a3bf2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,13 @@ export const addCertification = async (params: { codeRncp: string }) => {
);
}

const label = rncpCertification.INTITULE;
const level = getLevelFromRNCPCertification(rncpCertification);
const rncpTypeDiplomeLabel = rncpCertification.ABREGE?.LIBELLE;

const label = rncpTypeDiplomeLabel
? `${rncpTypeDiplomeLabel} - ${rncpCertification.INTITULE}`
: rncpCertification.INTITULE;

const availableAt = new Date();
const expiresAt = new Date(rncpCertification.DATE_FIN_ENREGISTREMENT);

Expand Down

0 comments on commit 31a3bf2

Please sign in to comment.