Button adding value starting on 2nd click and total is only correct on the first click

Getting toward the end of this project, but I just noticed something weird. On the first button click the values add up correctly, but when the user selects an option again I am not sure what happens. Sometimes it adds an incorrect number, or sometimes its subtracts.

Also, the pledge backer does not add one on the first click. It only adds to the backer total on the second click and up.

EDIT: fixed the backer problem. Still need to figure out the addition issue

EDIT2: Figured it out. I declared a variable up top, and it was never updated in the function. Kept using the same value that was stored in the variable at the top

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.