From 5322330c876661f79c75a61af0935b793ff8055d Mon Sep 17 00:00:00 2001 From: Joshua Melville Date: Thu, 30 May 2024 17:00:32 +0200 Subject: [PATCH] revert changes to Validations --- src/components/Validations/Validations.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/components/Validations/Validations.js b/src/components/Validations/Validations.js index caef07146..70616553b 100644 --- a/src/components/Validations/Validations.js +++ b/src/components/Validations/Validations.js @@ -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]; },