From 6461ebe2b83fd545ce331bdc15dedf736612dd1d Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 3 Feb 2022 14:10:32 +0100 Subject: [PATCH] :fire: Remove unreachable code. --- frontend/src/app/main/ui/auth/register.cljs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/frontend/src/app/main/ui/auth/register.cljs b/frontend/src/app/main/ui/auth/register.cljs index 6516c43a4..91e5dcb4f 100644 --- a/frontend/src/app/main/ui/auth/register.cljs +++ b/frontend/src/app/main/ui/auth/register.cljs @@ -32,14 +32,10 @@ (defn- validate [data] - (let [password (:password data) - terms-privacy (:terms-privacy data)] + (let [password (:password data)] (cond-> {} (> 8 (count password)) - (assoc :password {:message "errors.password-too-short"}) - - (and (not terms-privacy) false) - (assoc :terms-privacy {:message "errors.terms-privacy-agreement-invalid"})))) + (assoc :password {:message "errors.password-too-short"})))) (s/def ::fullname ::us/not-empty-string) (s/def ::password ::us/not-empty-string)