- Fix bug where the script was using x.activityType instead of x.promotionType this was causing that the script wasn't detecting earnable points from more promotions

This commit is contained in:
Jordy Mendoza
2024-04-21 23:50:33 -06:00
parent 66a82c2584
commit deb2d58b1b

View File

@@ -158,7 +158,7 @@ export default class BrowserFunc {
if (data.morePromotions?.length) {
data.morePromotions.forEach(x => {
// Only count points from supported activities
if (['quiz', 'urlreward'].includes(x.activityType)) {
if (['quiz', 'urlreward'].includes(x.promotionType)) {
totalEarnablePoints += (x.pointProgressMax - x.pointProgress)
}
})