mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-28 07:55:08 +03:00
fixed wallet claim reward removed finally state
This commit is contained in:
parent
996056fb6f
commit
e035ae08d4
@ -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 });
|
||||
});
|
||||
};
|
||||
|
@ -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 });
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user