Skip to content

Commit

Permalink
feat: verify draft
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian committed Oct 2, 2023
1 parent 249ab1b commit 30017c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/app/(wrapped)/intentions/intentionForm/IntentionForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const IntentionForm = ({

const { isLoading: isDraftSubmitting, mutateAsync: submitDraft } =
useMutation({
mutationFn: ({ forms }: { forms: IntentionForms }) =>
mutationFn: (forms: IntentionForms) =>
api
.submitDraftDemande({ body: { demande: { id: formId, ...forms } } })
.call(),
Expand Down Expand Up @@ -180,7 +180,7 @@ export const IntentionForm = ({
isDisabled={disabled}
isLoading={isDraftSubmitting}
variant="secondary"
onClick={() => submitDraft({ forms: getValues() })}
onClick={handleSubmit((values) => submitDraft(values))}
>
Enregistrer le projet de demande
</Button>
Expand Down

0 comments on commit 30017c1

Please sign in to comment.