Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Handle the fb_email_missing error #1139

Closed
wants to merge 1 commit into from
Closed

Conversation

deckar01
Copy link
Contributor

Adds error messaging for the "fb_email_missing" state that occurs when a user does not have an email address associated with their facebook account.

Fixes #1136.

@@ -9,7 +9,7 @@
</div>

<div ng-hide="reward.error">
<div class="content" ng-class="{active: reward.status == 'incomplete' || reward.status == 'pending' || reward.status == 'unverified' || reward.status == 'ineligible' || reward.status == 'updated_too_recently'}">
<div class="content" ng-class="{active: reward.status == 'incomplete' || reward.status == 'pending' || reward.status == 'unverified' || reward.status == 'ineligible' || reward.status == 'updated_too_recently' || reward.status == 'fb_email_missing'}">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the length of this, it seems like using {active: reward.error} would be preferable. Is there some reason not to?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We definitely need to open an issue to look into this. This portion of the code base is way too complex. @bartekn is redesigning the rewards API and I expect most of this rewards code to get scrapped in the modular client, so it may not be worth the effort.

@bekkibolthouse bekkibolthouse removed the pr label May 6, 2015
@bekkibolthouse
Copy link
Contributor

This code is being refactored in a different repo, as per deckar01's comment on Jan 21. Closing this PR as this effort will be applied elsewhere.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Handle facebook reward error "fb_email_missing"
4 participants