Skip to content

Commit

Permalink
revert changes to Validations
Browse files Browse the repository at this point in the history
  • Loading branch information
jthrilly committed May 30, 2024
1 parent dfdfcb4 commit 5322330
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/components/Validations/Validations.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ const validate = (validations) => {

const check = values.reduce(
(acc, [key, value]) => {
// 'unique' validation is a special case where there is no value
if (key === 'unique') { return acc; }

if (!isNull(value)) { return acc; }
return [...acc, key];
},
Expand Down

0 comments on commit 5322330

Please sign in to comment.