Closed GameBully2K closed 2 years ago
@GameBully2K - I was seeing this behavior too. I found that if I updated the following line:
to match the name of the localStorage item (i.e. "hashconnectData" not " hashConnectData") at:
This allowed the localStorage item to be found and therefore load the connection information into the current props / state of the component and maintain the "Connected" state.
Hope that helps :)
Also just to note, that because your not going through re-pairing each time the dApp name does not then get duplicated within HashPack itself.
@rajatK012 - Just put in a PR to fix this typo :)
Thanks @woodwardmatt I merged your request
thanks @woodwardmatt good obsoveration skills
Each time you visit the site you have to go through the pairing process and it's added as a new DApp
I suspect the problem is in this part of the connect() process