Synthetixio / kwenta

DEPRECATED. Please use: https://github.com/Kwenta/kwenta
MIT License
11 stars 20 forks source link

Button for approving a token/submitting an order to convert is not disabled until transaction is confirmed #351

Open drptbl opened 3 years ago

drptbl commented 3 years ago

Description: After clicking on "Approve" button when converting a token, it stays enabled for the whole time. Same applies to "Submit Order" button.

Prerequisites:

Reproduction steps:

  1. Go to Kwenta "Convert" page (https://dev.kwenta.io/dashboard/convert)
  2. Connect your wallet
  3. Select any ERC-20 asset (for example "FEI") inside "From" drop-down
  4. Click on your asset balance to fill maximum amount to swap
  5. Click on "Approve" button (button is active all time)
  6. Click on "Submit Order" button (button is active all time)

Current behavior:

Expected behavior:

Screenshots:

Screenshot 2021-04-22 at 13 15 11 Screenshot 2021-04-22 at 13 17 22

Desktop (please complete the following information):