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'
|
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 ? (
|
||||||
|
|
Loading…
Reference in New Issue