the rewards code bug

  • 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.claimable) ? false : true;

    if you change it to

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

    the bug will disappear

    I have mentioned it at github issues



Looks like your connection to NodeBB was lost, please wait while we try to reconnect.