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
There seems to be some kind of mismatch here. I'm watching two categories (General and Development); there's a "1 unread topic" bubble, but when I go to https://community.nodebb.org/unread, I get a "no unread topics" message.
Probably a very small error somewhere, but worthy of correcting.
It's gone away on its own after posting this thread -- but it shouldn't have been in that state to begin with, right?
Need to add localStorage to it, but also an option to re-enable in the user settings in case you accidentally closed it and actually do want it activated.
In any case, noticed OP is on an iPad, so made some changes that might work for him