When the currentContract is already set we should not overwrite it
How to reproduce the bug:
start the app (make sure your local storage is empty)
log in with a tz1/2/3
do not import contracts
go to the url localhost:3000/KT1N4PGc2VXRq8DwrRyLo57erbMEcieNU8M7
The dashboard is showing 00$ (if not reload your app)
Go to proposals
The proposals page redirect to the page invalid-contract
What is happening is that the login action overwrite currentContracts. When the user has not yet import contracts the value is set to null, even if the user was looking to a safe
When the currentContract is already set we should not overwrite it
How to reproduce the bug:
invalid-contract
What is happening is that the
login
action overwritecurrentContracts
. When the user has not yet import contracts the value is set to null, even if the user was looking to a safe