Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
docia committed Jul 2, 2024
1 parent dd19f20 commit 14ca679
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/subjects/Subjects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@ const Subjects = () => {

const cards = useMemo(
() =>
subjects.map((item: SubjectInterface) => {
subjects.map((item: SubjectInterface, index) => {
return (
<CardWithLink
description={`${item.totalOffers[oppositeRole]} ${t(
'categoriesPage.offers'
)}`}
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}
/>
Expand Down

0 comments on commit 14ca679

Please sign in to comment.