change food item type

This commit is contained in:
hamid zarghami
2026-06-03 14:59:47 +03:30
parent ce1a4ea7a8
commit b9608cd486
8 changed files with 316 additions and 312 deletions
@@ -51,7 +51,7 @@ export const useIncrementCart = () => {
if (food) {
const newItem: CartItem = {
foodId: String(id),
foodTitle: food.title || food.name || "",
foodTitle: food.title,
quantity: 1,
price: food.price,
discount: food.discount || 0,