Skip to content

Commit

Permalink
ENG-5437 fix user submit error callback
Browse files Browse the repository at this point in the history
  • Loading branch information
ichalagashvili committed Jan 23, 2024
1 parent 201eb97 commit 3497b86
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ui/users/add/AddFormContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ const AddFormContainer = () => {
dispatch(fetchProfileTypes({ page: 1, pageSize: 0 }));
}, [dispatch]);

const handleSubmit = useCallback((user, submitType) => {
dispatch(sendPostUser(user, submitType === 'saveAndEditProfile'));
}, [dispatch]);
const handleSubmit = useCallback((user, submitType) =>
dispatch(sendPostUser(user, submitType === 'saveAndEditProfile')), [dispatch]);

const handleCancel = useCallback(() => {
dispatch(setVisibleModal(ConfirmCancelModalID));
Expand Down

0 comments on commit 3497b86

Please sign in to comment.