From 6ea366f3695aac8679dd9e761d325e1238d9f26d Mon Sep 17 00:00:00 2001 From: Jakob Handrick Date: Sat, 15 Jan 2022 12:45:56 +0100 Subject: [PATCH] [BUGFIX] Fix mages not being removed from the recruited list after rerecruiting Issue: #455 Mages stayed in the recruited list after rerecruiting because they were distinguished by name (which is a non unique feature any more). The key has been adapted to be the id instead. --- src/components/molecules/MageList/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/molecules/MageList/index.tsx b/src/components/molecules/MageList/index.tsx index 629b8f2b..2a525761 100644 --- a/src/components/molecules/MageList/index.tsx +++ b/src/components/molecules/MageList/index.tsx @@ -17,7 +17,7 @@ const MageList = ({ mages }: Props) => ( {mages .filter((m): m is Mage => !!m) .map((mage, index) => ( - + ))}