Skip to content

Commit

Permalink
Fixed an issue where the points badge would disappear
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick Pastoor committed Nov 24, 2016
1 parent f127f9b commit 2122ae2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export SCRUMMER_VERSION="0.23"
export SCRUMMER_VERSION="0.24"
5 changes: 5 additions & 0 deletions src/scrummer.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ var calculateStoryPointsForCard = function (card, pointsSinceSeparator) {
contentMutated = true;
}

// Trello sometimes drops our badge, so if that happens we need to redraw
if (card.getAttribute('data-calculated-points') !== null && !card.querySelector('.scrummer-points')) {
contentMutated = true;
}

if (!originalTitle) {
return 0;
}
Expand Down

0 comments on commit 2122ae2

Please sign in to comment.