the rewards code bug

Bug Reports
  • 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

    I have mentioned it at github issues


Suggested Topics