Skip to content

Commit

Permalink
Merge pull request #559 from digitalgreenorg/fs_eth_dev
Browse files Browse the repository at this point in the history
Fs eth dev
  • Loading branch information
kanhaiyasuthar0 authored Mar 31, 2023
2 parents 20d5831 + 48f62e1 commit 3a13f78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Components/Standardization/StandardizationInOnbording.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ const StandardizationInOnbord = (props) => {
// let tmpDatapointNameError = [...accordionDatapointNameError]
// tmpDatapointNameError[index] = ""
// setAccordionDatapointNameError(tmpDatapointNameError)
if (newValue.length < 51 && newValue.match(RegexConstants.NEW_NAME_REGEX)) {
if (newValue.length < 51) {
tmpAllDatapoints[index].datapoint_category = newValue;
setAllDataPoints(tmpAllDatapoints);
} else {
Expand Down Expand Up @@ -188,7 +188,7 @@ const StandardizationInOnbord = (props) => {
newValue
) => {

if (newValue.length >= 251 || !newValue.match(RegexConstants.DATAPOINT_ATTRIBUTE_REGEX)) {
if (newValue.length >= 251) {
return
}
setSaveButtonEnabled(true)
Expand Down

0 comments on commit 3a13f78

Please sign in to comment.