Skip to content

Commit

Permalink
Fix mark as read action
Browse files Browse the repository at this point in the history
  • Loading branch information
Simounet committed May 15, 2019
1 parent 5a12ea8 commit 5988d31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ function markAsRead(button) {
}

var buttonToClear = isTotalCounterButton ? $('.js-mark-as-read') : button;
var buttonCount = buttonToClear.html();
var buttonCount = buttonToClear.find('[data-count="number"]').html();
if (
buttonToClear.hasClass('js-folder-counter') ||
isTotalCounterButton
Expand Down

0 comments on commit 5988d31

Please sign in to comment.