From 14ca679dc0725797645cb673bbf466960a1ae921 Mon Sep 17 00:00:00 2001 From: docia Date: Tue, 2 Jul 2024 23:49:06 +0300 Subject: [PATCH] fix --- src/pages/subjects/Subjects.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/subjects/Subjects.tsx b/src/pages/subjects/Subjects.tsx index bc870b3ce..bb12ddb51 100644 --- a/src/pages/subjects/Subjects.tsx +++ b/src/pages/subjects/Subjects.tsx @@ -98,7 +98,7 @@ const Subjects = () => { const cards = useMemo( () => - subjects.map((item: SubjectInterface) => { + subjects.map((item: SubjectInterface, index) => { return ( { )}`} icon={item.category.appearance.icon} iconColor={item.category.appearance.color} - key={item._id} + key={`${item._id}-${index}`} link={`${authRoutes.findOffers.path}?categoryId=${categoryId}&subjectId=${item._id}`} title={item.name} />