Fixed bugsnag roadable issue

This commit is contained in:
Mustafa Buyukcelebi 2019-08-25 23:01:44 +03:00
parent 9403e9ef44
commit 57a16f7f88
8 changed files with 8 additions and 9 deletions

View File

@ -151,7 +151,7 @@ class PointsContainer extends Component {
} }
}) })
.catch(err => { .catch(err => {
Alert.alert(err); Alert.alert(err.message || err.toString());
}); });
this.setState({ this.setState({
@ -167,7 +167,7 @@ class PointsContainer extends Component {
return balance; return balance;
}) })
.catch(err => { .catch(err => {
Alert.alert(err); Alert.alert(err.message || err.toString());
}); });
}; };

View File

@ -167,7 +167,7 @@ class TransferContainer extends Component {
}; };
setWithdrawVestingRoute(currentAccount, pinCode, data).catch(err => { setWithdrawVestingRoute(currentAccount, pinCode, data).catch(err => {
alert(err); alert(err.message || err.toString());
}); });
}; };

View File

@ -514,7 +514,6 @@ class ApplicationContainer extends Component {
this._connectNotificationServer(accountData.name); this._connectNotificationServer(accountData.name);
}) })
.catch(err => { .catch(err => {
this._handleAlert();
Alert.alert( Alert.alert(
`${intl.formatMessage({ id: 'alert.fetch_error' })} \n${err.message.substr(0, 20)}`, `${intl.formatMessage({ id: 'alert.fetch_error' })} \n${err.message.substr(0, 20)}`,
); );

View File

@ -104,7 +104,7 @@ class BoostPostScreen extends PureComponent {
this.setState({ balance }); this.setState({ balance });
}) })
.catch(err => { .catch(err => {
Alert.alert(err); Alert.alert(err.message || err.toString());
}); });
}; };

View File

@ -207,7 +207,7 @@ class EditorContainer extends Component {
intl.formatMessage({ intl.formatMessage({
id: 'alert.fail', id: 'alert.fail',
}), }),
error, error.message || error.toString(),
); );
this.setState({ isUploading: false }); this.setState({ isUploading: false });
}); });

View File

@ -202,7 +202,7 @@ class ProfileContainer extends Component {
{ {
error, error,
}, },
() => alert(error), () => alert(error.message || error.toString()),
); );
} else { } else {
this._fetchProfile(username, true); this._fetchProfile(username, true);

View File

@ -104,7 +104,7 @@ class PointsScreen extends PureComponent {
this.setState({ balance }); this.setState({ balance });
}) })
.catch(err => { .catch(err => {
Alert.alert(err); Alert.alert(err.message || err.toString());
}); });
}; };

View File

@ -69,7 +69,7 @@ class PowerDownView extends Component {
return res; return res;
}) })
.catch(e => { .catch(e => {
alert(e); alert(e.message || e.toString());
}); });
}; };