Fujicracy / fuji-v2

Cross-chain money market aggregator
https://fuji-v2-frontend.vercel.app
15 stars 10 forks source link

Update current hash when switching accounts #516

Open ferostabio opened 1 year ago

ferostabio commented 1 year ago

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.