Skip to content

Commit

Permalink
Fixed... 🍩
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbeutler committed Oct 23, 2022
1 parent f90a920 commit 2768b2a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion components/BillRecognitionModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const WebcamCapture: React.FC<{ ingredients: Ingredient[] }> = ({
item={ingredient}
key={ingredient.id}
onPress={() => {
if (ingredient && ingredient.stock)
if (ingredient && ingredient.stock !== undefined)
updateStock(ingredient, ingredient.stock + 1);
}}
/>
Expand Down
12 changes: 7 additions & 5 deletions components/IngredientsRecognitionModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,21 @@ const WebcamCapture: React.FC<{ ingredients: Ingredient[] }> = ({
predictions
.map((p) => p.name.toLowerCase())
.includes(i.name.toLowerCase()) ||
i.searchText && arrayHasOnOreMoreSimilarItems(
predictions.map((p) => p.name.toLowerCase()),
i.searchText.split(",")
)
(i.searchText &&
arrayHasOnOreMoreSimilarItems(
predictions.map((p) => p.name.toLowerCase()),
i.searchText.split(",")
))
);
})
.map((ingredient) => (
<IngredientCard
item={ingredient}
key={ingredient.id}
onPress={() => {
if (ingredient && ingredient.stock)
if (ingredient && ingredient.stock !== undefined) {
updateStock(ingredient, ingredient.stock + 1);
}
}}
/>
))}
Expand Down
1 change: 1 addition & 0 deletions components/RecipeCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const RecipeCard: React.FC<RecipeCardProps> = ({ recipe }) => {
</Col>
</Card.Header>
<Card.Image
css={{ filter: "brightness(0.5)" }}
src={recipe.image}
objectFit="cover"
width="100%"
Expand Down

3 comments on commit 2768b2a

@vercel
Copy link

@vercel vercel bot commented on 2768b2a Oct 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

app – ./

app-git-main-baselhack2022.vercel.app
app-coral-phi.vercel.app
app-baselhack2022.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 2768b2a Oct 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

app-vct1 – ./

app-vct1-git-main-baselhack2022.vercel.app
app-vct1-baselhack2022.vercel.app
app-vct1.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 2768b2a Oct 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

app-7rq9 – ./

app-7rq9-git-main-baselhack2022.vercel.app
app-7rq9-baselhack2022.vercel.app
app-7rq9.vercel.app

Please sign in to comment.