diff options
author | 2024-09-11 18:50:29 +0100 | |
---|---|---|
committer | 2024-09-11 18:50:29 +0100 | |
commit | 33ceb753600fc90d2cd6ab267fdadb598c5e9812 (patch) | |
tree | a66c19bdfc5419a752f484575ae7344b74b62508 | |
parent | Add missing semicolon (diff) |
Correct typing of button reference
-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(() => { |