mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-02 11:15:35 +03:00
fixed wallet claim reward removed finally state
This commit is contained in:
parent
0cd63ffe4f
commit
3dfc1a9a10
@ -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