Skip to content

Commit

Permalink
fix: field value
Browse files Browse the repository at this point in the history
  • Loading branch information
jsapro committed Dec 26, 2023
1 parent b1c465e commit d666ad7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const ProductsListPopup: React.FC<RecipeIngredientsProps> = ({ ingredients }) =>

const handleAddToCart = () => {
const data = products.map((prod) => {
return { id: prod.id, quantity: prod.amount_of_pack };
return { id: prod.id, quantity: prod.need_to_buy };
});
updateCart(data);
};
Expand Down

0 comments on commit d666ad7

Please sign in to comment.