Skip to content

Commit 06854a7

Browse files
committed
fix
1 parent e753f61 commit 06854a7

File tree

2 files changed

+1
-23
lines changed

2 files changed

+1
-23
lines changed

app/coins/[id]/page.tsx

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -181,28 +181,6 @@ const CoinDetails = async ({ params }: { params: Promise<{ id: string }> }) => {
181181
</div>
182182
</div>
183183

184-
{/* Top Gainers */}
185-
{/* <div className='space-y-6 mt-8'>
186-
<h4 className='section-title'>Top Gainers</h4>
187-
<div className='top-gainers-list'>
188-
{topGainersLosers.top_gainers.map(
189-
(coin: TopGainersLosersResponse) => (
190-
<CoinCard
191-
key={coin.id}
192-
id={coin.id}
193-
name={coin.name}
194-
symbol={coin.symbol}
195-
image={coin.image}
196-
price={coin.usd}
197-
priceChangePercentage24h={coin.usd_24h_change}
198-
volume24={coin.usd_24h_vol}
199-
rank={coin.market_cap_rank}
200-
/>
201-
)
202-
)}
203-
</div>
204-
</div> */}
205-
206184
<Tabs defaultValue='top-gainers' className='mt-8 w-full'>
207185
<TabsList className='size-full p-1 bg-transparent border-b border-dark-500 rounded-none '>
208186
<TabsTrigger

hooks/useCoinGeckoWebSocket.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export function useCoinGeckoWebSocket({
5555
amount: msg.to,
5656
};
5757

58-
setTrades((prev) => [newTrade, ...prev].slice(0, 10));
58+
setTrades((prev) => [newTrade, ...prev].slice(0, 7));
5959
}
6060
// G3: OHLCV updates
6161
if (msg.ch === 'G3') {

0 commit comments

Comments
 (0)