Skip to content

Commit

Permalink
fix bug where food unit isnt fetched correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
allen-liaoo committed May 4, 2024
1 parent f77ef0c commit c9c3c8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/FoodItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default function FoodItem({ food }) {
setName(newFood.name)
setImage(newFood.image)
setQuantity(newFood.quantity)
setUnit(newFood.units)
setUnit(newFood.unit)
setExpirationDate(newFood.expirationDate)
setExpirationDateAndQuantity(food);
}})()
Expand Down

0 comments on commit c9c3c8e

Please sign in to comment.