Merge pull request #98 from jordyamc/main

Bug when detecting earnable points from more promotions
This commit is contained in:
Netsky
2024-05-07 15:12:10 +02:00
committed by GitHub

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)
}
})