T2822
Depends on D12844
The activateWallet function in useWallet.js currently determines the active wallet by getting it from local storage within the function. However, due to the async nature of state variables and local storage, this value should be a parameter. That way it will match the corresponding value of walletToActivate at the time the function was called.