Merge pull request #389 from esteemapp/bugfix/388

fixed bugfic #388
This commit is contained in:
uğur erdal 2019-01-09 15:32:42 +03:00 committed by GitHub
commit 579eabb3ce

View File

@ -79,10 +79,10 @@ class WalletContainer extends Component {
id: 'alert.claim_reward_balance_ok',
}),
);
this._getWalletData(account[0]);
this._getWalletData(account && account[0]);
})
.then((account) => {
this._getWalletData(account[0]);
this._getWalletData(account && account[0]);
})
.catch((err) => {
Alert.alert(err);
@ -98,7 +98,7 @@ class WalletContainer extends Component {
getAccount(selectedUser.name)
.then((account) => {
this._getWalletData(account[0]);
this._getWalletData(account && account[0]);
})
.catch((err) => {
Alert.alert(err);