Skip to content

Commit

Permalink
Merge pull request #1116 from mozzy11/develop
Browse files Browse the repository at this point in the history
minor fix on Bar code config  componenet
  • Loading branch information
mozzy11 authored Jun 18, 2024
2 parents 23b50bf + 8272975 commit fe50922
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ function BarcodeConfiguration() {
setLoading(true);
} else {
setBarcodeFormValues(res);
setPrePrintDontUseAltAccession(res.prePrintDontUseAltAccession);
setLoading(false);
}
};
Expand Down Expand Up @@ -157,7 +158,7 @@ function BarcodeConfiguration() {
...barcodeFromValues,
prePrintAltAccessionPrefix: e.target.value,
});
setSaveButton(false);
//setSaveButton(false);
}

useEffect(() => {
Expand Down Expand Up @@ -533,6 +534,11 @@ function BarcodeConfiguration() {
"Input should be alphanumeric and have a maximum length of 4 characters.",
});
}
if (value.length < 4) {
setSaveButton(true);
} else {
setSaveButton(false);
}
}}
/>
)}
Expand Down

0 comments on commit fe50922

Please sign in to comment.