mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
price validation fix (#1366)
Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com>
This commit is contained in:
parent
8271963292
commit
b6ad55dda4
@ -85,6 +85,7 @@ const validationPricing = {
|
||||
amountDataToken: Yup.number().required('Required'),
|
||||
amountOcean: Yup.number()
|
||||
.test('validator-min-amountOcean', '', function (value) {
|
||||
if (this.parent.type === 'fixed') return true
|
||||
const minValue =
|
||||
this.parent.price > 0
|
||||
? new Decimal(this.parent.price)
|
||||
|
Loading…
Reference in New Issue
Block a user