Skip to content

Commit

Permalink
fix(cache): add unified acct details if deeplinked from exn settings
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLeoB committed May 18, 2022
1 parent 31d315d commit dbdff7e
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,14 @@ export default ({ api, coreSagas, networks }) => {
const settingsChange = params.get('change')
const email = decodeURIComponent(params.get('email') as string)
yield put(actions.cache.removeStoredLogin())
// after clearing cache in case previous wallet is
// not the same one for exchange settings
// repopulate cache
yield put(actions.cache.guidStored(guid))
yield put(actions.cache.exchangeWalletGuid(guid))
yield put(actions.cache.exchangeEmail(email))
yield put(actions.cache.emailStored(email))
yield put(actions.cache.setUnifiedAccount(true))
yield put(
actions.goals.saveGoal({
data: {
Expand Down

0 comments on commit dbdff7e

Please sign in to comment.