Skip to content
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

Closed
wants to merge 17 commits into from
Closed

Swaps: Input List #5728

wants to merge 17 commits into from

Conversation

benisgold
Copy link
Member

Fixes APP-####

What changed (plus any additional context for devs)

Screen recordings / screenshots

What to test

@benisgold benisgold requested a review from jinchung as a code owner May 16, 2024 15:37
Comment on lines 32 to 35
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) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why the change here?

Copy link
Contributor

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

Copy link
Member Author

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.

@benisgold benisgold closed this May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants