Skip to content

Commit

Permalink
Merge pull request #98 from kumarkrishh/error-fixes-anshul
Browse files Browse the repository at this point in the history
unique id fix
  • Loading branch information
anshulkc authored Dec 4, 2024
2 parents 3f2a2cb + b543a04 commit 0902f78
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 0902f78

Please sign in to comment.