Merge branch 'master' of https://github.com/esteemapp/esteem-mobile into feature/favorites

This commit is contained in:
u-e 2019-01-10 15:52:29 +03:00
commit 804d7e8788

View File

@ -61,12 +61,10 @@ class DraftsContainer extends Component {
getDrafts(currentAccount.name)
.then((data) => {
this.setState({ drafts: this._sortData(data) });
this.setState({ drafts: this._sortData(data), isLoading: false });
})
.catch(() => {
Alert.alert(intl.formatMessage({ id: 'drafts.load_error' }));
})
.finally(() => {
this.setState({ isLoading: false });
});
};
@ -128,4 +126,4 @@ const mapStateToProps = state => ({
currentAccount: state.account.currentAccount,
});
export default connect(mapStateToProps)(injectIntl(DraftsContainer));
export default injectIntl(connect(mapStateToProps)(DraftsContainer));