-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(token-search): fix token search results #3607
Changes from all commits
c84116c
2f0a02f
4ba1dd5
6e3a0a0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,8 +18,8 @@ export function FavouriteTokensList(props: FavouriteTokensListProps) { | |
return ( | ||
<div> | ||
<styledEl.Header> | ||
<h4>Favourite tokens</h4> | ||
<InfoIcon iconType="help" content="Your favourite saved tokens. Edit this list in your account page." /> | ||
<h4>Favorite tokens</h4> | ||
<InfoIcon iconType="help" content="Your favorite saved tokens. Edit this list in your account page." /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Additional request by Alex to update the spelling. |
||
</styledEl.Header> | ||
<styledEl.List> | ||
{tokens.map((token) => { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,6 @@ import { TokensMap } from '../types' | |
*/ | ||
export function tokenMapToListWithLogo(tokenMap: TokensMap): TokenWithLogo[] { | ||
return Object.values(tokenMap) | ||
.sort((a, b) => (a.symbol > b.symbol ? 1 : -1)) | ||
.sort((a, b) => a.symbol.localeCompare(b.symbol)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. funny, i just came to suggest this (use localeCompare), and I saw it was done moments ago! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Got to it when reading https://levelup.gitconnected.com/cross-browser-crazy-44e90d61b204 |
||
.map((token) => TokenWithLogo.fromToken(token, token.logoURI)) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix for missing entries.
Now all matches are collected.