EmerisHQ / demeris

Emeris web app
https://app.emeris.com/
Apache License 2.0
12 stars 2 forks source link

[Swap] Input amount doesn't clear when switched to another "Pay" asset #1676

Closed gheng7 closed 2 years ago

gheng7 commented 2 years ago

Describe the bug When performing a Swap, user's input amount doesn't clear up when switched to a different asset in "Pay" field.

image

To Reproduce Steps to reproduce the behavior:

  1. Go to Swap
  2. Click on e.g. CHEQ for "Pay"
  3. Input amount e.g. 50
  4. Click to open dropdown menu and choose another asset, e.g. ATOM
  5. Input amount stays the same at 50

Expected behavior Input amount for "Pay" should be reset to default value, i.e. 0

Screenshots

image

Additional context This experience is not ideal for users because most of the time the asset balance will not be right and users will see an error.

luciorubeens commented 2 years ago

Fixed in https://github.com/EmerisHQ/demeris/pull/1637/commits/70a45721f759dd303c7daa4969a73a8e4dcdf130