1
0
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:
Bogdan Fazakas 2023-02-06 16:17:06 +02:00 committed by GitHub
parent b5a853fcf0
commit 5a935fcd48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,8 +15,8 @@ export default function Price({
size?: 'small' | 'mini' | 'large' size?: 'small' | 'mini' | 'large'
}): ReactElement { }): ReactElement {
const isSupported = const isSupported =
(accessDetails?.type === 'fixed' || accessDetails?.type === 'free') && accessDetails?.type === 'free' ||
accessDetails?.baseToken?.symbol (accessDetails?.type === 'fixed' && accessDetails?.baseToken?.symbol)
const price = `${orderPriceAndFees?.price || accessDetails?.price}` const price = `${orderPriceAndFees?.price || accessDetails?.price}`
return isSupported ? ( return isSupported ? (