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;
- [Vuejs]-Returning TypeScript interface member issue
- [Vuejs]-Wrapping dynamically added child elements in my slot
Source:stackexchange.com