diff --git a/src/screens/drafts/container/draftsContainer.js b/src/screens/drafts/container/draftsContainer.js index c5e3a950f..69a766f74 100644 --- a/src/screens/drafts/container/draftsContainer.js +++ b/src/screens/drafts/container/draftsContainer.js @@ -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));