From 567ee0edf1ab94db2f98c74151d2f0a31b8ada00 Mon Sep 17 00:00:00 2001 From: Patriciu Nista Date: Wed, 8 Feb 2023 11:00:36 +0100 Subject: [PATCH] fix special chars on pool name --- src/components/StakingPoolCard.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/StakingPoolCard.js b/src/components/StakingPoolCard.js index b9fbbdc..f077597 100644 --- a/src/components/StakingPoolCard.js +++ b/src/components/StakingPoolCard.js @@ -84,9 +84,8 @@ function StakingPoolCard({ id, bech, avatar, tickerName, name, links, fullname } const twitch = links && links.tc; const discord = links && links.di; const github = links && links.gh; - const websiteUrl = fullname == null - ? undefined - : fullname.match(/(https?:\/\/[^\s]+"?utm_source=cexplorer.io)/g); + const websiteUrl = + fullname == null ? undefined : fullname.match(/(https?:\/\/[^\s]+"?utm_source=cexplorer.io)/g); return ( @@ -101,7 +100,7 @@ function StakingPoolCard({ id, bech, avatar, tickerName, name, links, fullname } rel="noreferrer noopener" > {tickerName ? <>[{tickerName}] : null} - {name || ''} + {truncateString(id)}