We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19008fb commit 41350acCopy full SHA for 41350ac
client/src/App.tsx
@@ -139,6 +139,11 @@ function App() {
139
return;
140
}
141
142
+ if (attempts.includes(attempt)){
143
+ setStatusWithTimeout("already tried");
144
+ return;
145
+ }
146
+
147
if (attempt.toLowerCase() != term.word) {
148
setStatusWithTimeout("incorrect");
149
setScore(score - 10);
@@ -193,6 +198,7 @@ function App() {
193
198
cleanStatus();
194
199
setTerm(get_random_term(5));
195
200
setAttempt("");
201
+ setAttempts([]);
196
202
setKeyboardColors(Array(26).fill("square-unattempted"));
197
203
204
0 commit comments