From 5db7927857ff4e324e65a2ce222a685bba626181 Mon Sep 17 00:00:00 2001 From: Kyle Ballagher Date: Thu, 22 Aug 2024 20:39:17 +0100 Subject: [PATCH] fix: corrected maxLength validator error name --- packages/platform/src/lib/validators/max-length.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/platform/src/lib/validators/max-length.ts b/packages/platform/src/lib/validators/max-length.ts index fa0c765..f289d8e 100644 --- a/packages/platform/src/lib/validators/max-length.ts +++ b/packages/platform/src/lib/validators/max-length.ts @@ -9,7 +9,7 @@ export function maxLength(length: number): ValidatorFn> setState('VALID'); } else { setState('INVALID', { - minLength: { + maxLength: { details: { currentLength: value.length, maxLength: length