1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

lower allowed OCEAN amount to add

This commit is contained in:
Matthias Kretschmann 2020-10-27 19:16:59 +01:00
parent d33669c963
commit aff25b7954
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -71,7 +71,7 @@ export default function Add({
// https://github.com/jquense/yup#number
const validationSchema = Yup.object().shape<FormAddLiquidity>({
amount: Yup.number()
.min(1, 'Must be more or equal to 1')
.min(0.01, 'Must be more or equal to 0.01')
.max(
Number(amountMax),
`Maximum you can add is ${Number(amountMax).toFixed(2)} ${coin}`