lcurran/game-project-client

Error on clicking occupied cell

Opened this issue · 1 comments

Error: "Cannot read property 'replace' of undefined"

This is happening because its trying to run the regex? Build logic to break out of function chain upon occupied click

Try getting rid of || and moving null conditional to an else if