Can´t make star rating to work

I don’t see anything right off with the snippet that you posted. However, without context I can’t say what else might be causing the jump in the number.

You can add some console.log() statements to find out what’s happening and when.