From 748b575c78f7451e53324fe2127888fdeeebc088 Mon Sep 17 00:00:00 2001 From: alireza Date: Mon, 1 Jun 2026 11:16:22 +0330 Subject: [PATCH] Fix unused animDir variable causing TS build error --- src/pages/Home/sections/RiskSection.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/pages/Home/sections/RiskSection.tsx b/src/pages/Home/sections/RiskSection.tsx index 1b46679..6724e5e 100644 --- a/src/pages/Home/sections/RiskSection.tsx +++ b/src/pages/Home/sections/RiskSection.tsx @@ -245,7 +245,6 @@ export default function RiskSection() { const [current, setCurrent] = useState(0) const [paused, setPaused] = useState(false) - const [animDir, setAnimDir] = useState<'next' | 'prev'>('next') const [isAnim, setIsAnim] = useState(false) const timerRef = useRef | null>(null) @@ -254,7 +253,6 @@ export default function RiskSection() { const go = useCallback((dir: 'next' | 'prev') => { if (isAnim) return - setAnimDir(dir) setIsAnim(true) setTimeout(() => { setCurrent(c => dir === 'next' ? (c + 1) % total : (c - 1 + total) % total)