Skip to content

Commit

Permalink
♻️ Rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienPavon committed Jan 24, 2025
1 parent 3e92ce0 commit cab460c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const getReprésentantLégal: GetReprésentantLégal = async (identifiant
});

if (Option.isSome(représentantLégal)) {
const demandéLe = await getChangementReprésentantLégal(identifiantProjet);
const demandéLe = await getDateDemandeEnCours(identifiantProjet);
const demandeChangementExistante =
utilisateur.aLaPermission('représentantLégal.consulterChangement') && !!demandéLe;

Expand Down Expand Up @@ -117,7 +117,7 @@ export const getReprésentantLégal: GetReprésentantLégal = async (identifiant
}
};

const getChangementReprésentantLégal = async (identifiantProjet: IdentifiantProjet.ValueType) => {
const getDateDemandeEnCours = async (identifiantProjet: IdentifiantProjet.ValueType) => {
try {
const représentantLégal =
await mediator.send<ReprésentantLégal.ConsulterReprésentantLégalQuery>({
Expand Down

0 comments on commit cab460c

Please sign in to comment.