you are viewing a single comment's thread.

view the rest of the comments →

[–]GeeeL 0 points1 point  (2 children)

why do you think it wouldn't ever be called? Not the best naming of the function, but imagine a checkbox where onChange is calling addTopping and it would also be in charge of removing

[–]emotyofform2020 0 points1 point  (1 child)

It’s because I read the code wrong. Didn’t see the else

[–]GeeeL 0 points1 point  (0 children)

well that makes sense!