From b6d26bb979ac0043505535a0f46068e4de0cf844 Mon Sep 17 00:00:00 2001 From: u-e Date: Tue, 14 May 2019 10:03:02 +0300 Subject: [PATCH] added alert --- src/screens/application/container/applicationContainer.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/screens/application/container/applicationContainer.js b/src/screens/application/container/applicationContainer.js index a36f430b9..135188310 100644 --- a/src/screens/application/container/applicationContainer.js +++ b/src/screens/application/container/applicationContainer.js @@ -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) => {