@@ -181,13 +181,13 @@ const SearchDialogContents = ({
181
181
const results = useMemo ( ( ) => {
182
182
const filteredFeeds = matchSorter ( feeds , search , {
183
183
keys : [ "displaySymbol" , "symbol" , "description" , "priceAccount" ] ,
184
- } )
185
- . entries ( )
186
- . map ( ( [ symbol , feed ] ) => ( {
187
- type : ResultType . PriceFeed as const ,
188
- id : symbol ,
189
- ... feed ,
190
- } ) ) ;
184
+ } ) . map ( ( { symbol , ... feed } ) => ( {
185
+ type : ResultType . PriceFeed as const ,
186
+ id : symbol ,
187
+ symbol ,
188
+ ... feed ,
189
+ } ) ) ;
190
+
191
191
const filteredPublishers = matchSorter ( publishers , search , {
192
192
keys : [ "publisherKey" , "name" ] ,
193
193
} ) . map ( ( publisher ) => ( {
@@ -197,10 +197,10 @@ const SearchDialogContents = ({
197
197
} ) ) ;
198
198
199
199
if ( type === ResultType . PriceFeed ) {
200
- return [ ... filteredFeeds ] ;
200
+ return filteredFeeds ;
201
201
}
202
202
if ( type === ResultType . Publisher ) {
203
- return [ ... filteredPublishers ] ;
203
+ return filteredPublishers ;
204
204
}
205
205
return [ ...filteredFeeds , ...filteredPublishers ] ;
206
206
} , [ feeds , publishers , search , type ] ) ;
0 commit comments