X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/d8619a37a078f72f4be154a3b82894810ebebf36..60df7056b536f7a333299638ca19bc12aee94d47:/src/validators/max-length.tsx

diff --git a/src/validators/max-length.tsx b/src/validators/max-length.tsx
index 1f8e5095..922e3e52 100644
--- a/src/validators/max-length.tsx
+++ b/src/validators/max-length.tsx
@@ -11,14 +11,12 @@ interface MaxLengthProps {
 }
 
 // TODO types for maxLength
-const maxLength: any = (maxLengthValue = DEFAULT_MAX_VALUE, errorMessage = ERROR_MESSAGE) => {
+export const maxLength: any = (maxLengthValue = DEFAULT_MAX_VALUE, errorMessage = ERROR_MESSAGE) => {
     return (value: string) => {
         if (value) {
-            return  value && value && value.length <= maxLengthValue ? undefined : `${errorMessage || ERROR_MESSAGE} ${maxLengthValue}`;
+            return  value && value.length <= maxLengthValue ? undefined : `${errorMessage || ERROR_MESSAGE} ${maxLengthValue}`;
         }
 
         return undefined;
     };
 };
-
-export default maxLength;
\ No newline at end of file
