diff options
-rw-r--r-- | thallium-frontend/src/components/CartStatus.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/thallium-frontend/src/components/CartStatus.tsx b/thallium-frontend/src/components/CartStatus.tsx index e5a4265..b128279 100644 --- a/thallium-frontend/src/components/CartStatus.tsx +++ b/thallium-frontend/src/components/CartStatus.tsx @@ -34,7 +34,7 @@ const CartStatus = () => { const total = cart.cart.reduce((acc, item) => acc + item.quantity, 0); const price = cart.cart.reduce((acc, item) => acc + (parseFloat(item.estPrice) * item.quantity), 0); - const staticButtonRef = useRef<Button>(null); + const staticButtonRef = useRef<HTMLButtonElement>(null); const buttonVisible = useVisible(staticButtonRef); useEffect(() => { |