From fd6033cb7813697adaedea92553e61b7be5300f3 Mon Sep 17 00:00:00 2001 From: Les Dyman Date: Thu, 1 Aug 2024 18:20:22 +0200 Subject: [PATCH] quick fix of CartProvider Type before deploy --- src/types/CartContextType.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/CartContextType.ts b/src/types/CartContextType.ts index 79e0552..1e7cc5a 100644 --- a/src/types/CartContextType.ts +++ b/src/types/CartContextType.ts @@ -2,7 +2,7 @@ import { CartItem } from './CartItem'; export interface CartContextType { cart: CartItem[]; - addToCart: (item: CartItem | undefined) => void; + addToCart: (item: CartItem) => void; changeItemCount: (id: string | number, quantity: number) => void; removeFromCart: (id: string | number) => void; clearCart: () => void;