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

refactor(swap): improve swap buy field performance #2795

Merged
merged 12 commits into from
Oct 19, 2023

Conversation

banklesss
Copy link
Contributor

@banklesss banklesss commented Oct 18, 2023

Related to YOMO-859


if ((isSearching && assetSearchTerm.length > 0 && filteredTokensForList.length === 0) || allTokenInfos.length === 0)
Copy link
Contributor Author

@banklesss banklesss Oct 18, 2023

Choose a reason for hiding this comment

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

When canallTokenInfos.length === 0) happen?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Could it happen when the wallet has no tokens? But anyway, they should not be blocked from selecting the token to buy 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have tested with a newly created wallet and the length value is 1 (ADA)

@banklesss banklesss force-pushed the refactor/improve-swap-buy-field-performance branch from 62a77fd to cc0304a Compare October 18, 2023 15:45
@banklesss banklesss self-assigned this Oct 18, 2023
@banklesss banklesss added this to the 5.0.0 milestone Oct 18, 2023
…CreateOrder/EditBuyAmount/SelectBuyTokenFromListScreen/SelectBuyTokenFromListScreen.tsx

Signed-off-by: banklesss <[email protected]>
banklesss and others added 3 commits October 19, 2023 10:20
…CreateOrder/EditBuyAmount/SelectBuyTokenFromListScreen/SelectBuyTokenFromListScreen.tsx

Signed-off-by: banklesss <[email protected]>
@banklesss banklesss force-pushed the refactor/improve-swap-buy-field-performance branch from 167f112 to b15dcc1 Compare October 19, 2023 09:52
@stackchain stackchain merged commit df04b52 into develop Oct 19, 2023
2 checks passed
@stackchain stackchain deleted the refactor/improve-swap-buy-field-performance branch October 19, 2023 11:45
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.

4 participants