Skip to content

Commit fa6d5f9

Browse files
committed
feat: add price account
1 parent 68f730c commit fa6d5f9

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

apps/insights/src/components/PriceFeed/price-feed-select.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ type ResolvedPriceFeedSelect = {
5656
symbol: string;
5757
displaySymbol: string;
5858
assetClass: string;
59-
key: string;
59+
key: string; // price_account
6060
description: string;
6161
icon: ReactNode;
6262
}[];
@@ -70,7 +70,7 @@ const ResolvedPriceFeedSelect = ({
7070
const filteredAndSortedFeeds = useMemo(
7171
() =>
7272
matchSorter(feeds, search, {
73-
keys: ["displaySymbol", "symbol", "description"],
73+
keys: ["displaySymbol", "symbol", "description", 'key'],
7474
}),
7575
[feeds, search],
7676
);

apps/insights/src/components/Root/search-button.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,12 +196,11 @@ const SearchDialogContents = ({
196196
...publisher,
197197
}));
198198

199-
// console.log({ filteredFeeds: [...filteredFeeds], filteredPublishers: [...filteredPublishers] })
200199
if (type === ResultType.PriceFeed) {
201-
return [...filteredFeeds];
200+
return filteredFeeds;
202201
}
203202
if (type === ResultType.Publisher) {
204-
return [...filteredPublishers];
203+
return filteredPublishers;
205204
}
206205
return [...filteredFeeds, ...filteredPublishers];
207206
}, [feeds, publishers, search, type]);

0 commit comments

Comments
 (0)