Update api/answer.php

This commit is contained in:
2026-06-15 12:08:20 +02:00
parent cb8bf3f1d1
commit c9bfed971a
+1 -2
View File
@@ -35,8 +35,7 @@ foreach ($data['words'] as $word) {
if ($word['id'] === $wordId) { if ($word['id'] === $wordId) {
$correct = $correct =
strtolower($word['answer']) === strtolower($userAnswer); normalize($word['answer']) === normalize($userAnswer);
updateWordStats($word, $correct); updateWordStats($word, $correct);
break; break;