Skip to content

Commit 40bf110

Browse files
committed
the points are already updated in the prplUpdatePreviousMonthBadgeCounters
1 parent f8dbd8c commit 40bf110

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

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)