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

added freeAgreement to pricing validation (#1188)

This commit is contained in:
EnzoVezzaro 2022-03-16 08:17:02 -04:00 committed by GitHub
parent 4dad9b6f9a
commit f2ecf1666b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,8 @@ export default function Navigation(): ReactElement {
const isSuccessMetadata = errors.metadata === undefined const isSuccessMetadata = errors.metadata === undefined
const isSuccessServices = errors.services === undefined const isSuccessServices = errors.services === undefined
const isSuccessPricing = const isSuccessPricing =
errors.pricing === undefined && touched.pricing?.price errors.pricing === undefined &&
(touched.pricing?.price || touched.pricing?.freeAgreement)
const isSuccessPreview = const isSuccessPreview =
isSuccessMetadata && isSuccessServices && isSuccessPricing isSuccessMetadata && isSuccessServices && isSuccessPricing