Skip to content

Commit

Permalink
Update AddPieceModal.js
Browse files Browse the repository at this point in the history
  • Loading branch information
alisher-epam authored Dec 13, 2023
1 parent 098d851 commit fb677f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/TitleDetails/AddPieceModal/AddPieceModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ const AddPieceModal = ({
return handleSubmit(e);
}, [checkHoldingAbandonment, getState, handleSubmit, id, initialHoldingId, toggleDeleteHoldingsConfirmation]);

const onCreateAnotherPiece = useCallback(() => {
const onCreateAnotherPiece = useCallback((e) => {
change('isCreateAnother', true);
handleSubmit();
}, [change, handleSubmit]);
onSave(e);
}, [change, onSave]);

const onDeleteHoldings = useCallback(() => {
change('deleteHolding', true);
Expand Down

0 comments on commit fb677f4

Please sign in to comment.