fox-one / fennec

A web browser extension wallet for Mixin Network.
GNU Affero General Public License v3.0
34 stars 10 forks source link

The pay dialog keep an incorrect state after a failed transfer. #4

Closed lyricat closed 3 years ago

lyricat commented 3 years ago

Describe the bug If a transfer failed, for example, pass invalid fields in transfer, the dialog will keep an incorrect state until tap "reject" button manually.

To Reproduce

Steps to reproduce the behavior:

  1. Invoke transfer method, with incorrect fields, e.g. incorrect trace ID
  2. The dialog popups and prompts an error message.
  3. Close the dialog.
  4. Correct the fields and invoke transfer again.
  5. See same error as above.

Expected behavior The second time to invoke transfer should be ok because all fields are correct.

The state of pay dialog should be cleared up after closing the dialog.

If the transfer succeed, show a success message and disable the two buttons.

Desktop (please complete the following information):