Skip to content

Commit b189732

Browse files
authored
Merge pull request #622 from ProgressPlanner/filip/v18/fix-621
Previous month points are not decreased when golden task is set back to pending
2 parents c539937 + 40bf110 commit b189732

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

assets/js/web-components/prpl-badge-progress-bar.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,8 @@ const prplUpdatePreviousMonthBadgeProgressBar = ( pointsDiff ) => {
113113
);
114114

115115
if ( remainingPointsEl ) {
116-
remainingPointsEl.textContent = remainingPointsEl.textContent.replace(
117-
remainingPointsEl.getAttribute( 'data-remaining' ),
118-
badgeMaxPoints - badgeNewPoints
119-
);
116+
// The points in the remaining points element are updated in the prplUpdatePreviousMonthBadgeCounters function.
117+
120118
remainingPointsEl.setAttribute(
121119
'data-remaining',
122120
badgeMaxPoints - badgeNewPoints

0 commit comments

Comments
 (0)