Skip to content

Commit

Permalink
unique id fix
Browse files Browse the repository at this point in the history
  • Loading branch information
anshulkc committed Dec 4, 2024
1 parent 3f2a2cb commit b543a04
Show file tree
Hide file tree
Showing 2 changed files with 110 additions and 6 deletions.
8 changes: 2 additions & 6 deletions components/RecipeCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,7 @@ export default function RecipeCard({
{recipe.extendedIngredients
?.filter((ingredient: any) =>
ingredientVariants.some((variant) =>
ingredient.name
.toLowerCase()
.includes(variant)
ingredient.name?.toLowerCase().includes(variant)
)
)
.map((ingredient: any) => (
Expand All @@ -213,9 +211,7 @@ export default function RecipeCard({
{recipe.extendedIngredients
?.filter((ingredient: any) =>
!ingredientVariants.some((variant) =>
ingredient.name
.toLowerCase()
.includes(variant)
ingredient.name?.toLowerCase().includes(variant)
)
)
.map((ingredient: any) => (
Expand Down
108 changes: 108 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b543a04

Please sign in to comment.