diff --git a/src/App.tsx b/src/App.tsx index 0fd03b5..8172f1b 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -82,7 +82,6 @@ export function App() { { diff --git a/src/components/Cart/Cart.tsx b/src/components/Cart/Cart.tsx index 0c773a1..e855029 100644 --- a/src/components/Cart/Cart.tsx +++ b/src/components/Cart/Cart.tsx @@ -13,7 +13,6 @@ import {useGlobalZustandState} from "../../hooks/useGlobalZustandState"; interface CartProps { products: Product[]; days: number; - excess: number; isComplete: boolean; isLoading: boolean; onProductsChange: Dispatch>; @@ -24,7 +23,6 @@ interface CartProps { export function Cart({ products, days, - excess, isComplete, isLoading, onProductsChange, @@ -36,7 +34,7 @@ export function Cart({ const [selectedProduct, setSelectedProduct] = useState(null); const [processingProductName, setProcessingProductName] = useState(null); - const {showFullRefreshButton} = useGlobalZustandState((state) => state); + const {showFullRefreshButton, excess} = useGlobalZustandState((state) => state); const visibleProducts = products.slice(0, visibleCount); const remaining = products.length - visibleProducts.length;