do not display reward summary if the user is approved for rewards

This commit is contained in:
Akinwale Ariwodola 2018-09-14 13:39:18 -04:00
parent 6719953cf1
commit 8a862439cc

View file

@ -26,7 +26,7 @@ class RewardSummary extends React.Component {
render() { render() {
const { fetching, navigation, unclaimedRewardAmount, user } = this.props; const { fetching, navigation, unclaimedRewardAmount, user } = this.props;
if (this.state.actionsLeft === 0 || unclaimedRewardAmount === 0) { if ((user && user.is_reward_approved) || this.state.actionsLeft === 0 || unclaimedRewardAmount === 0) {
return null; return null;
} }