From 1ec40530623ea3d01b72c89d49486aa13d2fdca6 Mon Sep 17 00:00:00 2001 From: saml33 Date: Fri, 22 Dec 2023 09:38:27 +1100 Subject: [PATCH] only show trade link if there is a market --- components/NewListingBanner.tsx | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/components/NewListingBanner.tsx b/components/NewListingBanner.tsx index 69eb50f4..bc6c1865 100644 --- a/components/NewListingBanner.tsx +++ b/components/NewListingBanner.tsx @@ -48,17 +48,21 @@ const NewListingBanner = () => { {t('new-token-live', { tokenName: latestListing.name })}
+ {newMarketName ? ( + <> + + {`${t('trade')} ${latestListing.name}`} + {' '} + |{' '} + + ) : null} - {`${t('trade')} ${latestListing.name}`} - {' '} - |{' '} - {`${t('swap')} ${latestListing.name}`}