Browse Source

update iguanaActiveHandle

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

2
react/src/actions/actions/addressBalance.js

@ -222,7 +222,7 @@ export function getKMDAddressesNative(coin, mode, currentAddress) {
let isNewAddr = true;
for (let x = 0; x < result.length && isNewAddr; x++) {
for (let y=0; y < result[x].length && isNewAddr; y++) {
for (let y = 0; y < result[x].length && isNewAddr; y++) {
if (allAddrArray[a] === result[x][y]) {
isNewAddr = false;
}

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