diff --git a/frontend-prep/src/context/CartContext.tsx b/frontend-prep/src/context/CartContext.tsx index c45fb7db..105a79e0 100644 --- a/frontend-prep/src/context/CartContext.tsx +++ b/frontend-prep/src/context/CartContext.tsx @@ -30,6 +30,7 @@ export interface CartItem { quantity: number; // ✨ En GRAMMES (pas "combien de fois") category: string; image?: string; + is_reward?: boolean; } interface CartContextType { @@ -129,6 +130,7 @@ export function CartProvider({ children }: { children: ReactNode }) { quantity: item.quantity as number, category: category, image: item.image as string | undefined, + is_reward: item.is_reward as boolean | undefined, }; });