added alert

This commit is contained in:
u-e 2019-05-14 10:03:02 +03:00
parent c679d79477
commit b6d26bb979

View File

@ -234,7 +234,7 @@ class ApplicationContainer extends Component {
this._connectNotificationServer(accountData.name);
})
.catch((err) => {
// Alert.alert(err);
Alert.alert(`Fetching data from server failed, please try again or notify us at info@esteem.app \n${err.substr(0, 20)}`);
});
}
@ -306,7 +306,9 @@ class ApplicationContainer extends Component {
dispatch(removeOtherAccount(currentAccount.name));
dispatch(logoutDone());
})
.catch(() => {});
.catch((err) => {
Alert.alert(`Fetching data from server failed, please try again or notify us at info@esteem.app \n${err.substr(0, 20)}`);
});
};
_switchAccount = async (targetAccountUsername) => {