It is working for the first value
character reaches level 5, it can upgrade, but now that character is level 5, if i click button it keeps upgrading making it level 2, 3, 4, etc.
It should be level 10 to be able to upgrade the next level of that object.
I even put my values
i dont know if that is the correct way to do it.