no console.log

This commit is contained in:
Lynn
2022-01-01 19:48:10 +01:00
parent 50ecda06c9
commit 6f94cb936a
4 changed files with 296 additions and 3 deletions

View File

@@ -11,7 +11,6 @@ const targets = common
function randomTarget(wordLength: number) {
const eligible = targets.filter((word) => word.length === wordLength);
console.log(eligible);
return pick(eligible);
}

View File

@@ -24,7 +24,6 @@ function Game(props: GameProps) {
const [hint, setHint] = useState<string>(`${props.wordLength} letters`);
const onKey = (key: string) => {
console.log(key);
if (gameState !== GameState.Playing) {
if (key === "Enter") {
props.restart();