fixed wallet claim reward removed finally state

This commit is contained in:
u-e 2019-01-10 22:28:02 +03:00
parent 996056fb6f
commit e035ae08d4
2 changed files with 3 additions and 7 deletions

View File

@ -83,11 +83,10 @@ class WalletContainer extends Component {
})
.then((account) => {
this._getWalletData(account && account[0]);
this.setState({ claiming: false });
})
.catch((err) => {
Alert.alert(err);
})
.finally(() => {
this.setState({ claiming: false });
});
};
@ -99,11 +98,10 @@ class WalletContainer extends Component {
getAccount(selectedUser.name)
.then((account) => {
this._getWalletData(account && account[0]);
this.setState({ isRefreshing: false });
})
.catch((err) => {
Alert.alert(err);
})
.finally(() => {
this.setState({ isRefreshing: false });
});
};

View File

@ -45,12 +45,10 @@ class DraftsContainer extends Component {
getSchedules(currentAccount.name)
.then((data) => {
this.setState({ schedules: this._sortData(data) });
this.setState({ schedules: this._sortData(data), isLoading: false });
})
.catch(() => {
Alert.alert(intl.formatMessage({ id: 'drafts.load_error' }));
})
.finally(() => {
this.setState({ isLoading: false });
});
};