Skip to content

Commit dc8fa11

Browse files
fix(insights): revert variable name back to featuredRecentlyAdded
Co-Authored-By: Connor Prussin <connor@dourolabs.xyz>
1 parent 72443ad commit dc8fa11

File tree

1 file changed

+9
-6
lines changed
  • apps/insights/src/components/PriceFeeds

1 file changed

+9
-6
lines changed

apps/insights/src/components/PriceFeeds/index.tsx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export const PriceFeeds = async () => {
8787
<FeaturedFeeds
8888
allComingSoon={priceFeeds.comingSoon}
8989
featuredComingSoon={featuredComingSoon.slice(0, 5)}
90-
feeds={featuredFeeds.slice(0, 5)}
90+
featuredRecentlyAdded={featuredFeeds.slice(0, 5)}
9191
/>
9292
<PriceFeedsCard
9393
id={PRICE_FEEDS_ANCHOR}
@@ -120,7 +120,7 @@ export const PriceFeeds = async () => {
120120
<FeaturedFeeds
121121
allComingSoon={priceFeeds.comingSoon}
122122
featuredComingSoon={featuredComingSoon}
123-
feeds={featuredFeeds}
123+
featuredRecentlyAdded={featuredFeeds}
124124
/>
125125
</UnstyledTabPanel>
126126
</UnstyledTabs>
@@ -129,26 +129,29 @@ export const PriceFeeds = async () => {
129129
};
130130

131131
type FeaturedFeedsProps = {
132-
feeds: FeaturedFeed[];
132+
featuredRecentlyAdded: FeaturedFeed[];
133133
featuredComingSoon: FeaturedFeed[];
134134
allComingSoon: { symbol: string }[];
135135
};
136136

137137
const FeaturedFeeds = ({
138-
feeds,
138+
featuredRecentlyAdded,
139139
featuredComingSoon,
140140
allComingSoon,
141141
}: FeaturedFeedsProps) => (
142142
<>
143143
<YesterdaysPricesProvider
144144
feeds={Object.fromEntries(
145-
feeds.map(({ symbol, product }) => [symbol, product.price_account]),
145+
featuredRecentlyAdded.map(({ symbol, product }) => [
146+
symbol,
147+
product.price_account,
148+
]),
146149
)}
147150
>
148151
<FeaturedFeedsCard
149152
title="Featured"
150153
icon={<Star />}
151-
feeds={feeds}
154+
feeds={featuredRecentlyAdded}
152155
showPrices
153156
linkFeeds
154157
/>

0 commit comments

Comments
 (0)