Skip to content

Commit

Permalink
fix(useHandleForm): Removed console log (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
heythisispaul authored and JamesSingleton committed Dec 29, 2019
1 parent 78ad45d commit fae386c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
File renamed without changes.
3 changes: 1 addition & 2 deletions src/hooks/useHandleForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ const useFormSubmission = ({ submitFunction, initialValue = {} } = {}) => {
setSubmitResult(result);
return result;
} catch (err) {
// eslint-disable-next-line no-console
console.error(err);
setExperiencedError(true);
setIsSubmitting(false);
setSubmitResult(err);
return err;
}
};
Expand Down

0 comments on commit fae386c

Please sign in to comment.