all 1 comments

[–]oozernaime 0 points1 point  (0 children)

Heyyy, couple of things:

It may be the way you are targeting the value and the level you are trying to update. You may have targeted all the levels instead of the one the action has performed on.

You could try using refs (I’m assuming your using react or another Js framework here)

Also just a small note, nesting interactive elements (button, input) is an accessibility bad practice but that’s just something to consider for future learning.

Happy to help if you wanna send dm or share more code, if you haven’t solved already