After second transaction, TransactionButton click causes page to clear.
Opened this issue · 0 comments
I'm fairly certain this did not happen until recently.
After sending a second transaction (also after failed transaction) clicking the green or red transaction button again causes entire page to clear.
Steps to recreate:
- Send funds from Alice to an(other) address.
- If successful, click "send" button to reset the button state, and ready for a new transaction.
- Send funds from Alice to a second address (or the same address or even Alice).
- If successful, click "send" button to reset again.
- Screen clears completly with error
Uncaught Error: mismatched use()/drop(): drop() called once more than expected!
Line 364bond.js
The error also occurs if the transaction fails on the first attempt, when clicking to reset.
Observations:
In TransactionButton.jsx
.untie()
is is tied to the this.state.status
and appears to get triggered for a successful transaction, as well as a failed transaction.
However, the actual error message seems to indicate that this .untie()
is probably triggered multiple times during the processing of the transaction, perhaps in not waiting for the promise to be resolved, and then again due to the tied status when the this.state.status
changes.
Expected Behaviour
I would say that successful or not, the entire transaction state should be reset, and that clicking the button should only change the state of the button.