projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '15020-collection-with-the-same-content-adress'
[arvados-workbench2.git]
/
src
/
validators
/
is-integer.tsx
diff --git
a/src/validators/is-integer.tsx
b/src/validators/is-integer.tsx
index fbfe8fbc241978768ab96879846792aa48aaa8b2..84e7f240fe9488ca92db476207b5f4a2bd74cef7 100644
(file)
--- a/
src/validators/is-integer.tsx
+++ b/
src/validators/is-integer.tsx
@@
-4,7
+4,7
@@
import { isInteger as isInt } from 'lodash';
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;
export const isInteger = (value: any) => {
return isInt(value) ? undefined : ERROR_MESSAGE;