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

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
This commit is contained in:
Bogdan Fazakas 2023-03-30 14:26:38 +03:00 committed by GitHub
parent 85a9a21a1c
commit 1ebfbca11e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,6 +34,14 @@ export default function Preview(): ReactElement {
validOrderTx: '', validOrderTx: '',
publisherMarketOrderFee: '0' 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) setAsset(asset)
} }
makeDdo() makeDdo()