From 4a0684f2a365671a40242c9758c85546ecd61dd5 Mon Sep 17 00:00:00 2001 From: Daniel Dominguez Date: Tue, 15 May 2018 13:19:29 -0300 Subject: [PATCH] Fix grayed out rewards by using the correct property to check for reward eligibility. --- CHANGELOG.md | 8 +++++--- src/renderer/page/rewards/view.jsx | 6 ++++-- yarn.lock | 2 +- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 200d69ca4..4f0e50e0f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,11 +30,13 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/). * Fix don't allow dark mode with automatic night mode enabled ([#1005](https://github.com/lbryio/lbry-app/issues/1005)) * Fix description box on Publish (dark theme) ([#1356](https://github.com/lbryio/lbry-app/issues/#1356)) * Fix price wrapping in price badge ([#1420](https://github.com/lbryio/lbry-app/pull/1420)) - * Fix spacing in search suggestions ([#1422](https://github.com/lbryio/lbry-app/pull/1422)) - * Fix text/HTML files don't display correctly in-app anymore ([#1379](https://github.com/lbryio/lbry-app/issues/1379)) - * Fix notification modals when reward is claimed ([#1436](https://github.com/lbryio/lbry-app/issues/1436)) and ([#1407](https://github.com/lbryio/lbry-app/issues/1407)) + * Fix spacing in search suggestions ([#1422])(https://github.com/lbryio/lbry-app/pull/1422)) + * Fix text/HTML files don't display correctly in-app anymore ([#1379])(https://github.com/lbryio/lbry-app/issues/1379) + * Fix notification modals when reward is claimed ([#1436])(https://github.com/lbryio/lbry-app/issues/1436) and ([#1407])(https://github.com/lbryio/lbry-app/issues/1407) + * Fix disabled cards(grayed out) ([#1466])(https://github.com/lbryio/lbry-app/issues/1466) * Fix markdown render ([#1179](https://github.com/lbryio/lbry-app/issues/1179)) + ## [0.21.3] - 2018-04-23 diff --git a/src/renderer/page/rewards/view.jsx b/src/renderer/page/rewards/view.jsx index ded3f37fc..c7b076439 100644 --- a/src/renderer/page/rewards/view.jsx +++ b/src/renderer/page/rewards/view.jsx @@ -14,6 +14,9 @@ type Props = { rewards: Array<{ reward_type: boolean }>, user: ?{ is_identity_verified: boolean, + is_reward_approved: boolean, + primary_email: string, + has_verified_email: boolean, }, daemonSettings: { share_usage_data: boolean, @@ -131,8 +134,7 @@ class RewardsPage extends React.PureComponent { } const isNotEligible = - !user || !user.primary_email || !user.has_verified_email || !user.is_identity_verified; - + !user || !user.primary_email || !user.has_verified_email || !user.is_reward_approved; return (