mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-22 21:01:31 +03:00
Merge branch 'master' of https://github.com/esteemapp/esteem-mobile into feature/favorites
This commit is contained in:
commit
804d7e8788
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user