X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/b0de143e088973715681f7eb6c41f2dccb648c2b..9b423a1e4ac7aa6077399da13a3d786df0eed11c:/src/validators/require.tsx

diff --git a/src/validators/require.tsx b/src/validators/require.tsx
index 8ac3401c..f636850d 100644
--- a/src/validators/require.tsx
+++ b/src/validators/require.tsx
@@ -4,13 +4,11 @@
 
 export const ERROR_MESSAGE = 'This field is required.';
 
-interface RequireProps {
+interface RequiredProps {
     value: string;
 }
 
 // TODO types for require
-const require: any = (value: string, errorMessage = ERROR_MESSAGE) => {
-    return value && value.toString().length > 0 ? undefined : ERROR_MESSAGE;
+export const require: any = (value: string) => {
+    return value && value.length > 0 ? undefined : ERROR_MESSAGE;
 };
-
-export default require;
