diff --git a/apps/insights/src/components/PriceFeeds/index.tsx b/apps/insights/src/components/PriceFeeds/index.tsx index 2e8f50ef95..bc2810d55f 100644 --- a/apps/insights/src/components/PriceFeeds/index.tsx +++ b/apps/insights/src/components/PriceFeeds/index.tsx @@ -210,21 +210,9 @@ const filterFeeds = ( feeds: T[], symbols: string[], ): T[] => - symbols.map((symbol) => { - const feed = feeds.find((feed) => feed.symbol === symbol); - if (feed) { - return feed; - } else { - throw new NoSuchFeedError(symbol); - } - }); + symbols + .map((symbol) => feeds.find((feed) => feed.symbol === symbol)) + .filter((feed) => feed !== undefined); const isActive = (feed: { price: { minPublishers: number } }) => feed.price.minPublishers <= 50; - -class NoSuchFeedError extends Error { - constructor(symbol: string) { - super(`No feed exists named ${symbol}`); - this.name = "NoSuchFeedError"; - } -} diff --git a/apps/insights/src/static-data/price-feeds.tsx b/apps/insights/src/static-data/price-feeds.tsx index 84201a859a..943fbe9095 100644 --- a/apps/insights/src/static-data/price-feeds.tsx +++ b/apps/insights/src/static-data/price-feeds.tsx @@ -7,5 +7,5 @@ export const priceFeeds = { "Commodities.WTI1M", "Crypto.1INCH/USD", ], - featuredComingSoon: ["Crypto.ION/USD", "Equity.NL.BCOIN/USD"], + featuredComingSoon: ["Rates.US1Y"], };