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

The "From Token" and "To Token" drop-downs don't change pre-selected token to first available one #535

Open
Andrew718PLTS opened this issue Oct 23, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Andrew718PLTS
Copy link

Description

The "From Token" and "To Token" drop-downs don't change pre-selected token to first available one from updated dropdown after selecting one of them. Available tokens in both drop-downs are changing by selecting different token from both drop-downs - currently, we're leaving it with previous value.

Steps To Reproduce

  1. Navigate to the app
  2. Select for instance the "eXOF" token from the "From Token" drop-down
  3. Open the "To Token" drop-down
  4. Ensure the pre-selected token is not exist in the updated "To Token" dropdown options and can't be exchanged because of missing a token

Expected result

The "From Token" and "To Token" drop-downs change pre-selected token to first available one from updated dropdown after selecting one of them

Actual result

The "From Token" and "To Token" drop-downs don't change pre-selected token to first available one from updated dropdown after selecting one of them

Screenshots

image.png

Private Zenhub Video

Additional context

@Andrew718PLTS Andrew718PLTS added the bug Something isn't working label Oct 23, 2024
@RyRy79261
Copy link

Estimate: 2

Proposed solve:
Bind an effect to the dropdown update which checks if existing selected token is in new list, updating the selected value if token is not present in list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants