From 5a935fcd48660309e6a37a93b00c6c647fd08235 Mon Sep 17 00:00:00 2001 From: Bogdan Fazakas Date: Mon, 6 Feb 2023 16:17:06 +0200 Subject: [PATCH] Fix free price display (#1881) * fix free price display on asset preview and asset details page * update condition --- src/components/@shared/Price/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/@shared/Price/index.tsx b/src/components/@shared/Price/index.tsx index 6dff88ec5..4a972334f 100644 --- a/src/components/@shared/Price/index.tsx +++ b/src/components/@shared/Price/index.tsx @@ -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 ? (