Skip to content

Commit 6cb64c0

Browse files
authored
Update HomeMarketCards
The rationale of this change is to update HomeMarketCards to start rendering charts when there are at least 4 of them present. Due to (most likely because of the financialModelingPrep API changes again) a bug in production and some of the charts returning empty array (always happened at the way 1 chart is not present), I needed to update this.
2 parents eebbb9e + 1be1a34 commit 6cb64c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/home-market-cards/HomeMarketCards.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const HomeMarketCards = () => {
4848

4949
return (
5050
<Slider {...settings}>
51-
{forex.length > 5
51+
{forex.length > 4
5252
? forex.map((data, index) => (
5353
<div key={index}>
5454
<MarketCards

0 commit comments

Comments
 (0)