Skip to content

Commit

Permalink
Don't call if using a cold wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
aaroncox committed Feb 27, 2019
1 parent 6d97061 commit 8e27115
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/shared/containers/Global/Account/Select/Wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ class GlobalAccountSelectWallet extends Component<Props> {
}

swapAccount = (chainId, account, authorization, password = false) => {
const { actions } = this.props;
actions.getInfo();
const { actions, settings } = this.props;
if (!['cold'].includes(settings.walletMode)) {
actions.getInfo();
}
actions.useWallet(chainId, account, authorization);
if (password) {
actions.unlockWallet(password);
Expand Down

0 comments on commit 8e27115

Please sign in to comment.