diff --git a/app/components/Account/AccountSelector.jsx b/app/components/Account/AccountSelector.jsx index c8a15befbf..6302fbf605 100644 --- a/app/components/Account/AccountSelector.jsx +++ b/app/components/Account/AccountSelector.jsx @@ -61,7 +61,7 @@ class AccountSelector extends React.Component { if (this.props.onAccountChanged && account) this.props.onAccountChanged(account); - if (!this.props.typeahead && !!accountName) + if (!this.props.typeahead && accountName) this.onInputChanged(accountName); } @@ -119,7 +119,7 @@ class AccountSelector extends React.Component { // - Always returns account object if (!typeahead) { if (onChange) onChange(_accountName); - if (onAccountChanged) onAccountChanged(_account); + if (onAccountChanged && _account) onAccountChanged(_account); } } diff --git a/app/components/Account/AccountVoting.jsx b/app/components/Account/AccountVoting.jsx index 67c4942f8e..37ff00dbe7 100644 --- a/app/components/Account/AccountVoting.jsx +++ b/app/components/Account/AccountVoting.jsx @@ -678,15 +678,14 @@ class AccountVoting extends React.Component { let proxyInput = (