mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
enforce min dtAmount
This commit is contained in:
parent
ef335ff850
commit
a064e951c9
@ -2,8 +2,8 @@ import { PriceOptionsMarket } from '../@types/MetaData'
|
|||||||
import * as Yup from 'yup'
|
import * as Yup from 'yup'
|
||||||
|
|
||||||
export const validationSchema = Yup.object().shape<PriceOptionsMarket>({
|
export const validationSchema = Yup.object().shape<PriceOptionsMarket>({
|
||||||
price: Yup.number().min(1, 'Must be greater than 0').required('Required'),
|
price: Yup.number().min(1, 'Must be greater than 1').required('Required'),
|
||||||
dtAmount: Yup.number().min(1, 'Must be greater than 0').required('Required'),
|
dtAmount: Yup.number().min(9, 'Must be greater than 9').required('Required'),
|
||||||
oceanAmount: Yup.number()
|
oceanAmount: Yup.number()
|
||||||
.min(1, 'Must be greater than 0')
|
.min(1, 'Must be greater than 0')
|
||||||
.required('Required'),
|
.required('Required'),
|
||||||
|
Loading…
Reference in New Issue
Block a user