Skip to content

Commit

Permalink
fix: added formType dep
Browse files Browse the repository at this point in the history
  • Loading branch information
SPageot committed Mar 9, 2022
1 parent 03400e2 commit 9778b54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/forms/CreateUnitIssuanceForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const CreateUnitIssuanceForm = ({ value, onChange }) => {
if(validateForm && formType === 'issuances'){
setValidationErrors(issuanceSchema, value, setErrorIssuanceMessage);
}
}, [value, validateForm]);
}, [value, validateForm, formType]);

return (
<ModalFormContainerStyle>
Expand Down
2 changes: 1 addition & 1 deletion src/components/forms/CreateUnitLabelsForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const CreateUnitLabelsForm = ({ value, onChange }) => {
if (validateForm && formType === 'labels') {
setValidationErrors(labelSchema, value, setErrorLabelMessage);
}
}, [value, validateForm]);
}, [value, validateForm,formType]);

return (
<ModalFormContainerStyle>
Expand Down

0 comments on commit 9778b54

Please sign in to comment.