Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the rewards code bug #4574

Closed
hl4god opened this issue Apr 27, 2016 · 0 comments
Closed

the rewards code bug #4574

hl4god opened this issue Apr 27, 2016 · 0 comments
Assignees
Labels
Milestone

Comments

@hl4god
Copy link

hl4god commented Apr 27, 2016

when I new a rewards ,and set Amount of times reward is claimable to 1 when user post count >=10 ,this rule can be trigger twice ,When you post several times, including twice as long to meet more than 10 Posts.

I view the code about rewards ,and found the issue in src/rewards/index.js 93 line

return (userRewards[reward.id] > reward.claimable) ? false : true;

if you change it to

return (userRewards[reward.id] >= reward.claimable) ? false : true;

the bug will disappear

Please fix it

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

No branches or pull requests

3 participants