superfluid-finance / superfluid-explorer

The new and improved Superfluid Explorer, built with SDK-Core, SDK-Redux & Next.js & MaterialUI
https://explorer.superfluid.finance
MIT License
22 stars 28 forks source link

[console] fix bug of old persisted state for a network crashing the view #211

Closed kasparkallas closed 8 months ago

kasparkallas commented 8 months ago

What?

Users can set preferences for test networks for themselves. Those preferences are stored in the local state. When a network is removed and the user had a preference for that network then the app crashes. The fix is to clear the local state.

Why?

It's not a good look and it will surface again in the future. The fix is very destructive for the end-user if they have other local state (like the address book).

How?