Role Playing Game step 102 curriculum breaking bug

First ive seen an error like this but on both firefox and chrome i get this stupid error that doesnt let me submit my code. I dont get any recommendations or any feedback when clicking the button or inputting control enter, the only way to make anything happen is to click the browser that is supposed to show my code and then this weird error pops up. I want to figure out how to continue on the lesson but cant get around this dumb bug.

Your code so far

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0

Challenge Information:

Learn Basic JavaScript by Building a Role Playing Game - Step 102

1 Like

Whenever you have syntax errors the current setup doesn’t know how to process it.
So that is why you are not able to submit your code.

The syntax error in this case is the missing curly braces after the if statement
once you add that, then the error will go away

1 Like

It’s best to follow these instructions for posting code instead of posting a screenshot