Skip to content

Commit

Permalink
fix: fix send decision autorisation (#576)
Browse files Browse the repository at this point in the history
  • Loading branch information
YoannNumericite authored Sep 15, 2023
1 parent 734c97b commit 46f643c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ChangeStatutDossierButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const ChangeStatutDossierButton: React.FC<Props> = ({ dossier, demandeur }) => {
<button
key={transition.name}
className={styles.row}
onClick={() => {
onClick={async () => {
setDropdownVisible(false);
const transitionEvent = transition.name;
mutate(
Expand All @@ -69,7 +69,7 @@ const ChangeStatutDossierButton: React.FC<Props> = ({ dossier, demandeur }) => {
});
});
if (transition.name === "passerAccepte") {
const attachment = generateDA([dossier as DossierData], true);
const attachment = await generateDA([dossier as DossierData], true);
sendEmail(
"auth_access",
attachment as string,
Expand Down

0 comments on commit 46f643c

Please sign in to comment.