Skip to content

Commit

Permalink
fix: onComplete retrieves the form data properly
Browse files Browse the repository at this point in the history
  • Loading branch information
pbastia authored and dleard committed May 27, 2021
1 parent aeb0a1a commit b5b5e7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/containers/Applications/ApplicationWizardStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ const ApplicationWizardStep: React.FunctionComponent<Props> = ({
setSaved(true);
};

const onComplete = (result) => {
const formData = result.data;
storeResult(formData);
const onComplete = async (result) => {
const {formData} = result;
await storeResult(formData);
onStepComplete();
};

Expand Down

0 comments on commit b5b5e7e

Please sign in to comment.