[ARVADOS-WORKBENCH2] created: 1.2.0-625-gbb42f0f

Git user git at public.curoverse.com
Fri Oct 12 00:45:07 EDT 2018


        at  bb42f0f851083f01540725f31cc6afd9ce939143 (commit)


commit bb42f0f851083f01540725f31cc6afd9ce939143
Author: Michal Klobukowski <michal.klobukowski at contractors.roche.com>
Date:   Fri Oct 12 06:44:56 2018 +0200

    Update numeric fields error messages
    
    Feature #14227
    
    Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski <michal.klobukowski at contractors.roche.com>

diff --git a/src/validators/is-integer.tsx b/src/validators/is-integer.tsx
index fbfe8fb..84e7f24 100644
--- a/src/validators/is-integer.tsx
+++ b/src/validators/is-integer.tsx
@@ -4,7 +4,7 @@
 
 import { isInteger as isInt } from 'lodash';
 
-const ERROR_MESSAGE = 'This field must be an integer';
+const ERROR_MESSAGE = 'This field can only contain integer values';
 
 export const isInteger = (value: any) => {
     return isInt(value) ? undefined : ERROR_MESSAGE;
diff --git a/src/validators/is-number.tsx b/src/validators/is-number.tsx
index 152c647..b43eec9 100644
--- a/src/validators/is-number.tsx
+++ b/src/validators/is-number.tsx
@@ -3,7 +3,7 @@
 // SPDX-License-Identifier: AGPL-3.0
 
 import { isNumber as isNum } from 'lodash';
-const ERROR_MESSAGE = 'This field must be a number';
+const ERROR_MESSAGE = 'This field can only contain numeric values';
 
 export const isNumber = (value: any) => {
     return !isNaN(value) && isNum(value) ? undefined : ERROR_MESSAGE;

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list