You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The toggle on the last line reverses the remove a few lines above. It works fine for different values, but if you click the same score twice, it will stay selected. In effect, once you have clicked, you can never not select a score value.
One approach is to only fire the remove if the score value is different. Alternative approaches welcome, as long as the result works and is fairly succinct
The text was updated successfully, but these errors were encountered:
In JS updateStar
The toggle on the last line reverses the remove a few lines above. It works fine for different values, but if you click the same score twice, it will stay selected. In effect, once you have clicked, you can never not select a score value.
One approach is to only fire the remove if the score value is different. Alternative approaches welcome, as long as the result works and is fairly succinct
The text was updated successfully, but these errors were encountered: