Merge branch 'development' of github.com:gnosis/safe-react into 133-send-improvements
This commit is contained in:
commit
0ef723c1bd
|
@ -50,8 +50,8 @@ export const minValue = (min: number) => (value: string) => {
|
||||||
return `Should be at least ${min}`
|
return `Should be at least ${min}`
|
||||||
}
|
}
|
||||||
|
|
||||||
export const maxValue = (max: number) => (value: string) => {
|
export const maxValue = (max: number | string) => (value: string) => {
|
||||||
if (Number.isNaN(Number(value)) || Number.parseInt(value, 10) <= Number(max)) {
|
if (Number.isNaN(Number(value)) || parseFloat(value, 10) <= parseFloat(max, 10)) {
|
||||||
return undefined
|
return undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue