Browse Source

update iguanaActiveHandle

all-modes
pbca26 8 years ago
parent
commit
0f180d57eb
  1. 6
      react/src/actions/actions/walletAuth.js

6
react/src/actions/actions/walletAuth.js

@ -255,6 +255,12 @@ export function iguanaActiveHandle(getMainAddress) {
'response': json,
}));
}
if (!Config.iguanaLessMode &&
sessionStorage.getItem('IguanaActiveAccount') &&
JSON.parse(sessionStorage.getItem('IguanaActiveAccount')).pubkey === json.pubkey &&
json.status === 'unlocked') {
sessionStorage.setItem('IguanaActiveAccount', JSON.stringify(json));
}
dispatch(getMainAddress ? getMainAddressState(json) : iguanaActiveHandleState(json));
});
}

Loading…
Cancel
Save