We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c539937 + 40bf110 commit b189732Copy full SHA for b189732
assets/js/web-components/prpl-badge-progress-bar.js
@@ -113,10 +113,8 @@ const prplUpdatePreviousMonthBadgeProgressBar = ( pointsDiff ) => {
113
);
114
115
if ( remainingPointsEl ) {
116
- remainingPointsEl.textContent = remainingPointsEl.textContent.replace(
117
- remainingPointsEl.getAttribute( 'data-remaining' ),
118
- badgeMaxPoints - badgeNewPoints
119
- );
+ // The points in the remaining points element are updated in the prplUpdatePreviousMonthBadgeCounters function.
+
120
remainingPointsEl.setAttribute(
121
'data-remaining',
122
badgeMaxPoints - badgeNewPoints
0 commit comments