Skip to content

Commit 2b80b9c

Browse files
committed
feat(dev-hub) Search Feeds bug fix
1 parent a916e1c commit 2b80b9c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

apps/developer-hub/src/app/api/search/route.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ async function getHermesFeeds(): Promise<AdvancedIndex[]> {
4242
if (parsed.success) {
4343
for (const feed of parsed.data) {
4444
allFeeds.push({
45-
title: feed.attributes.symbol,
45+
title: `${feed.attributes.symbol} (Core)`,
4646
description: `Price Feed ID: ${feed.id}`,
4747
url: `/price-feeds/core/price-feeds/price-feed-ids?search=${feed.attributes.symbol}`,
4848
id: feed.id,
@@ -79,7 +79,7 @@ async function getLazerFeeds(): Promise<AdvancedIndex[]> {
7979
}
8080

8181
return parsed.data.map((feed) => ({
82-
title: feed.name,
82+
title: `${feed.name} (Pro)`,
8383
description: `${feed.symbol} - ${feed.description} (ID: ${String(feed.pyth_lazer_id)})`,
8484
url: `/price-feeds/pro/price-feed-ids?search=${feed.symbol}`,
8585
id: `lazer-${String(feed.pyth_lazer_id)}`,

apps/developer-hub/src/components/PriceFeedIdsProTable/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const PriceFeedIdsProTable = () => {
6262
return items;
6363
}
6464
return matchSorter(items, searchString, {
65-
keys: ["pyth_lazer_id"],
65+
keys: ["pyth_lazer_id", "symbol", "name", "description"],
6666
});
6767
},
6868
{

0 commit comments

Comments
 (0)