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;