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)