Skip to content

Commit e53cd87

Browse files
committed
fix
1 parent 2a352da commit e53cd87

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default Home;
4949
const CoinOverviewSection = async () => {
5050
const [coinData, coinOHLCData] = await Promise.all([
5151
getCoinDetails('bitcoin'),
52-
getCoinOHLC('bitcoin', 30, 'usd', 'hourly', 'full'),
52+
getCoinOHLC('bitcoin', 1, 'usd', 'hourly', 'full'),
5353
]);
5454

5555
return (

components/LiveDataWrapper.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,24 +33,28 @@ export default function LiveDataWrapper({
3333
image={coin.image.large}
3434
livePrice={price?.usd ?? coin.market_data.current_price.usd}
3535
livePriceChangePercentage24h={
36-
price?.change24h ?? coin.market_data.price_change_percentage_24h_in_currency.usd
36+
price?.change24h ??
37+
coin.market_data.price_change_percentage_24h_in_currency.usd
38+
}
39+
priceChangePercentage30d={
40+
coin.market_data.price_change_percentage_30d_in_currency.usd
3741
}
38-
priceChangePercentage30d={coin.market_data.price_change_percentage_30d_in_currency.usd}
3942
priceChange24h={coin.market_data.price_change_24h_in_currency.usd}
4043
/>
4144

4245
<Separator className='my-8 bg-purple-600' />
4346

4447
{/* Trend Overview */}
4548
<div className='w-full'>
46-
<h4 className='section-title'>Trend Overview</h4>
4749
<CandlestickChart
4850
data={coinOHLCData}
4951
liveOhlcv={ohlcv}
5052
coinId={coinId}
5153
mode='live'
5254
initialPeriod='daily'
53-
/>
55+
>
56+
<h4 className='section-title mt-2 pl-2'>Trend Overview</h4>
57+
</CandlestickChart>
5458
</div>
5559

5660
<Separator className='my-8 bg-purple-600' />

0 commit comments

Comments
 (0)