Skip to content

Commit

Permalink
Fix error on web main page
Browse files Browse the repository at this point in the history
  • Loading branch information
DinerIsmail committed Sep 24, 2024
1 parent 74cba37 commit 60b36f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions components/main-list/item/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const Item = ({
position="relative"
>
<ListingImage
alt={`${dataItem.title} cover image`}
alt={`${dataItem.label} cover image`}
src={dataItem.image}
sizes="(max-width: 768px) 90vw, 300px"
isInView={isInView}
Expand All @@ -142,7 +142,7 @@ const Item = ({
mb={0}
noOfLines={3}
>
{dataItem.title}
{dataItem.label}
</chakra.h2>
</Flex>
{dataItem.seekingVolunteers && !simplified && (
Expand Down
4 changes: 2 additions & 2 deletions helpers/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const sortStringsFunc = (a, b): number => {
const labelA = a.title?.toLowerCase()
const labelB = b.title?.toLowerCase()
const labelA = a.label?.toLowerCase()
const labelB = b.label?.toLowerCase()

if (labelA < labelB) {
return -1
Expand Down

0 comments on commit 60b36f4

Please sign in to comment.