From 68c4211a585b5d40b760f265948dfd701e58ce61 Mon Sep 17 00:00:00 2001 From: Mirjam Aulbach Date: Tue, 22 Aug 2023 17:49:42 +0200 Subject: [PATCH] fix(coral): Update validation for service accounts field (#1676) Update validation for service accounts field. Signed-off-by: Mirjam Aulbach Co-authored-by: aindriu-aiven <121855584+aindriu-aiven@users.noreply.github.com> --- .../form-schemas/topic-acl-request-shared-fields.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coral/src/app/features/topics/acl-request/form-schemas/topic-acl-request-shared-fields.ts b/coral/src/app/features/topics/acl-request/form-schemas/topic-acl-request-shared-fields.ts index e78bfd1c4b..52720c4197 100644 --- a/coral/src/app/features/topics/acl-request/form-schemas/topic-acl-request-shared-fields.ts +++ b/coral/src/app/features/topics/acl-request/form-schemas/topic-acl-request-shared-fields.ts @@ -41,10 +41,10 @@ const acl_ssl = z .max(5, { message: "Maximum 5 elements allowed." }) .refine( (values) => { - return values.find((value) => value.length < 4) === undefined; + return values.find((value) => value.length < 3) === undefined; }, { - message: "Every element must be more than 3 characters.", + message: "Every element must have at least 3 characters.", } ) .optional();