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
1 changed files with 2 additions and 2 deletions

View File

@ -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 ? (