From 2c16736bdf3dad6241ac02cfabd8c50b7967f047 Mon Sep 17 00:00:00 2001 From: Hikari Date: Mon, 9 Mar 2026 22:12:42 -0700 Subject: [PATCH] fix: use item name as key for equipped items list item.type only has three possible values (weapon/armour/trinket). Using it as a React key is safe in practice because the equipment system enforces one item per slot, but item.name is a stable, semantically correct unique identifier that does not rely on that invariant. --- apps/web/src/components/game/characterPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/components/game/characterPage.tsx b/apps/web/src/components/game/characterPage.tsx index b498534..25fca25 100644 --- a/apps/web/src/components/game/characterPage.tsx +++ b/apps/web/src/components/game/characterPage.tsx @@ -243,7 +243,7 @@ const CharacterPage = ({ discordId }: CharacterPageProperties): JSX.Element => { return (