Skip to content

Commit

Permalink
fix: fixed issue with parsing when claps > 1000
Browse files Browse the repository at this point in the history
fixes #11
  • Loading branch information
ColinEberhardt committed Sep 11, 2018
1 parent 1213cea commit ca620c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/applause-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class ApplauseButton extends HTMLCustomElement {

setTimeout(() => {
this._countElement.innerHTML = formatClaps(
Number(this._countElement.innerHTML) + 1
Number(this._countElement.innerHTML.replace(",", "")) + 1
);
}, 250);

Expand Down

0 comments on commit ca620c4

Please sign in to comment.