When there's an active transaction, it's set as the currentTxHash in the history store. Now, if the user switches to another account or disconnects, once he goes back to the account that executed the transaction, the modal will appear on screen, no matter when it was executed.
I switched for an alternative testing account for a moment after almost a week, and a modal showed up -I didn't even know what it was, why, until I realized the issue.
Update the history.store property when the user either changes address or disconnects.
When there's an active transaction, it's set as the
currentTxHash
in the history store. Now, if the user switches to another account or disconnects, once he goes back to the account that executed the transaction, the modal will appear on screen, no matter when it was executed.I switched for an alternative testing account for a moment after almost a week, and a modal showed up -I didn't even know what it was, why, until I realized the issue.