aboutsummaryrefslogtreecommitdiffstats
path: root/thallium-frontend
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-09-11 18:50:29 +0100
committerGravatar GitHub <[email protected]>2024-09-11 18:50:29 +0100
commit33ceb753600fc90d2cd6ab267fdadb598c5e9812 (patch)
treea66c19bdfc5419a752f484575ae7344b74b62508 /thallium-frontend
parentAdd missing semicolon (diff)
Correct typing of button reference
Diffstat (limited to 'thallium-frontend')
-rw-r--r--thallium-frontend/src/components/CartStatus.tsx2
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(() => {