Skip to content

Commit

Permalink
fix: formState success
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliaghisini committed Jun 14, 2024
1 parent 5737ae2 commit 8bbf87e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/View.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,10 @@ const View = ({ data, id, path }) => {
if (submitResults?.loaded) {
setFormState({
type: FORM_STATES.success,
result: [
intl.formatMessage(messages.formSubmitted),
submitResults.result
]
result: {
message: intl.formatMessage(messages.formSubmitted),
...submitResults.result,
},
});
captcha.reset();
const formItem = document.getElementById(formid);
Expand Down

0 comments on commit 8bbf87e

Please sign in to comment.