From b6ad55dda4a8938a6850901260184dff462cd53e Mon Sep 17 00:00:00 2001 From: claudiaHash <49017601+claudiaHash@users.noreply.github.com> Date: Wed, 27 Apr 2022 22:42:25 +0300 Subject: [PATCH] price validation fix (#1366) Co-authored-by: ClaudiaHolhos --- src/components/Publish/_validation.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Publish/_validation.ts b/src/components/Publish/_validation.ts index b211c5e9b..fddce2af8 100644 --- a/src/components/Publish/_validation.ts +++ b/src/components/Publish/_validation.ts @@ -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)