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

GITC-599: remove duplicates in token selection input (cart + tips) #9692

Merged
merged 3 commits into from
Nov 18, 2021

Conversation

chibie
Copy link
Contributor

@chibie chibie commented Nov 16, 2021

Description
Refers/Fixes
Testing

tested locally


return vm.filterByChainId.filter(
obj => !uniq[obj['name']] && (uniq[obj['name']] = true)
);
Copy link
Contributor

Choose a reason for hiding this comment

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

This is going to leave behind tokens which are not configured for polygon, will that present an issue? Instead of removing duplicates, could we filter by chainId AND networkId?

@thelostone-mc
Copy link
Member

what do we want to do here guys ?

@chibie
Copy link
Contributor Author

chibie commented Nov 18, 2021

what do we want to do here guys ?

i'd say we merge this

the alternative ux flow where a user selects the checkout option before selecting a token will also mean checkout recommendation may not be possible

cause the current flow is,

select currency -> view recommendation -> choose checkout option

Copy link
Contributor

@gdixon gdixon left a comment

Choose a reason for hiding this comment

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

I'd agree here, let's get this merged and then loop in design to rethink the flow to get a solution in place to only show the valid tokens for a given chain.

@thelostone-mc thelostone-mc merged commit f0c7e49 into master Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants