Skip to content

Commit

Permalink
fix: add key to categories
Browse files Browse the repository at this point in the history
  • Loading branch information
remvze committed Feb 11, 2024
1 parent a5d2ba4 commit 38c11f1
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/components/categories/categories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,11 @@ export function Categories({ categories }: CategoriesProps) {
return (
<AnimatePresence initial={false}>
{categories.map((category, index) => (
<>
<Category
functional={category.id !== 'favorites'}
{...category}
key={category.id}
/>
<div key={category.id}>
<Category functional={category.id !== 'favorites'} {...category} />

{index === 3 && <Donate />}
</>
</div>
))}
</AnimatePresence>
);
Expand Down

0 comments on commit 38c11f1

Please sign in to comment.