mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
Fix free price display (#1881)
* fix free price display on asset preview and asset details page * update condition
This commit is contained in:
parent
b5a853fcf0
commit
5a935fcd48
@ -15,8 +15,8 @@ export default function Price({
|
||||
size?: 'small' | 'mini' | 'large'
|
||||
}): ReactElement {
|
||||
const isSupported =
|
||||
(accessDetails?.type === 'fixed' || accessDetails?.type === 'free') &&
|
||||
accessDetails?.baseToken?.symbol
|
||||
accessDetails?.type === 'free' ||
|
||||
(accessDetails?.type === 'fixed' && accessDetails?.baseToken?.symbol)
|
||||
const price = `${orderPriceAndFees?.price || accessDetails?.price}`
|
||||
|
||||
return isSupported ? (
|
||||
|
Loading…
Reference in New Issue
Block a user