From 1ebfbca11e89af0ad7a448b5d4f0cb73505a54f6 Mon Sep 17 00:00:00 2001 From: Bogdan Fazakas Date: Thu, 30 Mar 2023 14:26:38 +0300 Subject: [PATCH] Fix no pricing schema available in publish preview page (#1901) * fix preview price schema not available * fix swithc from fre to free after first set --- src/components/Publish/Preview/index.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/components/Publish/Preview/index.tsx b/src/components/Publish/Preview/index.tsx index 868eb99ec..c45fb4f6b 100644 --- a/src/components/Publish/Preview/index.tsx +++ b/src/components/Publish/Preview/index.tsx @@ -34,6 +34,14 @@ export default function Preview(): ReactElement { validOrderTx: '', publisherMarketOrderFee: '0' } + asset.stats = { + orders: null, + price: { + value: values.pricing.type === 'free' ? 0 : values.pricing.price, + tokenSymbol: values.pricing?.baseToken?.symbol || 'OCEAN', + tokenAddress: ZERO_ADDRESS + } + } setAsset(asset) } makeDdo()