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

updated parameter (#635)

This commit is contained in:
Dimo Dzhurenov 2021-05-31 13:52:14 +03:00 committed by GitHub
parent cd8e388806
commit 29b644f402
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,7 +64,7 @@ export default function FormTrade({
.required('Required')
.nullable(),
datatoken: Yup.number()
.max(maxDt, `Must be less or equal than ${maximumDt}`)
.max(maximumDt, (param) => `Must be less or equal than ${param.max}`)
.min(0.00001, (param) => `Must be more or equal to ${param.min}`)
.required('Required')
.nullable(),