Quoting from your question:
I don't have much to say since there isn't any other information that I can provide.
Here's the other information that you can provide, which would help somebody to understand your issue:
What actions are you taking for the error to be produced?
As it is, if I run your code I see three buttons and no error. Presumably the error occurs when I click one of the buttons, or maybe more than one of the buttons in some specific order. Perhaps I could figure out which button(s) to press by playing around, but if I get an error by some different sequence of button presses then maybe I will write an answer that doesn't actually resolve your issue. Or if the error is specific to your browser then I might not be able to reproduce it, but I won't know whether the code is working for me or I'm just not testing it properly. Alternatively, if the error is caused by using your code in an unintended way, then it might just be an issue of how to make sure the user can't press the wrong button at the wrong time. We don't know!
What do you intend for the code to do when the error is fixed?
If the only way of judging a proposed answer is the absence of an error, then I could just delete parts of the code until there is no error. Obviously it would be silly to delete all of your code and say "there, no error!", but without knowing what the intended behaviour of your code is, I can't know whether I have made it work properly. I could guess, but I might guess wrong and then waste effort writing an answer which makes your code successfully do the wrong thing. It's far better to be explicit in the question about what the code is supposed to do when it works.
Include the full stack trace of the error
The error message alone says what the error was, but not where it occurred. For errors which occur at runtime, please include a full stack trace with line numbers.