mirror of
https://github.com/UiO-Gaming/name-100-uio-gamers.git
synced 2026-11-05 13:56:53 +01:00
Use stable keys for the guesses list
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
56d86d9ed2
commit
15e7ed9bae
1 file changed
+2
-2
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user