diff --git a/src/pages/TrueSightV2/components/WatchlistButton.tsx b/src/pages/TrueSightV2/components/WatchlistButton.tsx index b3d48dd109..edaf8f13a6 100644 --- a/src/pages/TrueSightV2/components/WatchlistButton.tsx +++ b/src/pages/TrueSightV2/components/WatchlistButton.tsx @@ -349,11 +349,7 @@ const CreateListInput = ({ value={value} onChange={e => { if (touchedRef.current) { - if (!checkExist(e.target.value)) { - setIsError(false) - } else { - setIsError(true) - } + setIsError(checkExist(e.target.value)) } setValue(e.target.value) }} diff --git a/src/pages/TrueSightV2/components/chart/KyberScoreChart.tsx b/src/pages/TrueSightV2/components/chart/KyberScoreChart.tsx index d1846ae029..7b98af1254 100644 --- a/src/pages/TrueSightV2/components/chart/KyberScoreChart.tsx +++ b/src/pages/TrueSightV2/components/chart/KyberScoreChart.tsx @@ -86,7 +86,7 @@ export default function KyberScoreChart({ {filledData?.map((item, index) => { - const v = item?.createdAt || 0 + const v = item?.kyberScore || 0 const gap = 2 const rectWidth = (100 - (filledData.length - 1) * gap) / filledData.length const rectHeight = !v ? 21 : Math.max((v * 21) / 100, 0.8) diff --git a/src/pages/TrueSightV2/hooks/useRenderRankingList.tsx b/src/pages/TrueSightV2/hooks/useRenderRankingList.tsx index 94de308a97..89a49d7b38 100644 --- a/src/pages/TrueSightV2/hooks/useRenderRankingList.tsx +++ b/src/pages/TrueSightV2/hooks/useRenderRankingList.tsx @@ -502,7 +502,7 @@ const renderByColumnType: Record< <> {['Binance', 'OKX', 'Bybit'].map((exname: string) => { const exchange = token?.fundingRateExtra?.uMarginList?.find((item: any) => item.exchangeName === exname) - const rate = (exchange && exchange.rate) || 0 + const rate = exchange?.rate || 0 return ( {rate.toFixed(4) + '%' || '--'}