-
Notifications
You must be signed in to change notification settings - Fork 635
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
Swaps: Input List #5728
Swaps: Input List #5728
Conversation
const nameMatch = asset.name.toLowerCase().includes(searchQuery); | ||
const symbolMatch = asset.symbol.toLowerCase().startsWith(searchQuery); | ||
const addressMatch = asset.address.toLowerCase().startsWith(searchQuery); | ||
if (nameMatch || symbolMatch || addressMatch) { |
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.
why the change here?
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.
oh hmm i see nvm, good catch
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.
we can prob improve later also. for example, rank startsWith
matches for name higher than includes
matches for name, if that makes sense.
Fixes APP-####
What changed (plus any additional context for devs)
Screen recordings / screenshots
What to test