Skip to content

Commit

Permalink
Removed console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
DerCed committed Feb 15, 2024
1 parent 5b5264e commit c4b1e3f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/components/Registration/Registration.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -290,15 +290,12 @@ function Registration() {
if (!inputList) {
return;
}
console.log("######## ", name, "#################")
const result = inputList.content.reduce((previous, current) => {
console.log(current.name, values[current.name], previous)
if (!current.required && (values[current.name] === undefined || values[current.name] === "")) {
console.log("Optional Field is empty -- skipping")
return previous && true
}
if (current.required && ((!values[current.name] && values[current.name] !== 0) || values[current.name] === "")) {
console.log("Required field is empty")
return previous && false
}
const meetsMax = current.max ? values[current.name]?.length <= current.max : true;
Expand All @@ -308,7 +305,6 @@ function Registration() {
return previous && meetsAll

}, true)
console.log("Result", result)
return result
}

Expand Down

0 comments on commit c4b1e3f

Please sign in to comment.