Skip to content

Commit f82edf2

Browse files
committed
Bug fix: Add setting submission error to strongForm
strongForm wouldn't set it's submission error value, if the error is not directly related to strongForm internal logic
1 parent ed81119 commit f82edf2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/cyberstorm-remix/cyberstorm/utils/StrongForm/useStrongForm.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ export function useStrongForm<
150150
if (props.onSubmitError) {
151151
props.onSubmitError(error as SubmissionError);
152152
}
153+
setSubmitError(error as SubmissionError);
153154
throw error;
154155
} finally {
155156
setSubmitting(false);

0 commit comments

Comments
 (0)