Fixed bugsnag roadable issue

This commit is contained in:
Mustafa Buyukcelebi 2019-08-25 23:01:44 +03:00
parent 679fa9bbd9
commit 73b13c28e4
8 changed files with 8 additions and 9 deletions

View File

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

View File

@ -514,7 +514,6 @@ class ApplicationContainer extends Component {
this._connectNotificationServer(accountData.name);
})
.catch(err => {
this._handleAlert();
Alert.alert(
`${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 });
})
.catch(err => {
Alert.alert(err);
Alert.alert(err.message || err.toString());
});
};

View File

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

View File

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

View File

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

View File

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