I have this RPS game here, and it works pretty much as I wanted (thanks for all your help!) But when one game ends, I offer the player to start a new game with a button … and that button disappears once that new game has started. Functionally, it works without a hitch but I get this error on the console. Is it something I should worry about? How do I make it go away?
Here’s my codepen: https://codepen.io/acchang/full/abdOVvm
rpsDOMS.html:165 Uncaught DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node. at HTMLParagraphElement.<anonymous> (file:///Users/andrewchang/the_odin_project/Rock-Paper-Scissors/rpsDOMS.html:165:6)