[Vuejs]-Vue JS Click Function Behaves Strangely

0👍

Don’t parse 0 to integer. parseInt(0) will result in NaN.
Check for O in addPoint method and pass it directly as:

this.totalPoints += parseInt(this.totalPoints) + (point != O)?parseInt(point):0;

Leave a comment