Use stable keys for the guesses list

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
leanderandClaude Opus 5.5 committed 2026-10-31 01:44:21 +01:00
1 parent 56d86d9ed2
commit 15e7ed9bae
1 file changed
+2 -2
+2 -2
View File
@@ -20,9 +20,9 @@ const GuessesList: React.FC<GuessesListProps> = ({ matches }) => {
return (
<ul className="flex w-full max-w-md flex-col gap-4">
{[...matches].reverse().map((match, idx) => (
{[...matches].reverse().map((match) => (
<li
key={idx}
key={match.id ?? `guess-${match.input}`}
className={`${
match.correct
? "border-1 border-green-600 bg-green-100 text-green-600"