From 6b83bbd3b16699ce332702efde7d11adc2b006b7 Mon Sep 17 00:00:00 2001 From: richardscull <106016833+richardscull@users.noreply.github.com> Date: Fri, 28 Aug 2026 17:43:35 +0300 Subject: [PATCH] fix: don't return scroll for result since it doesn't have destroy --- components/ScrollUp.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/ScrollUp.tsx b/components/ScrollUp.tsx index 0a12c7f3..a5a8f3f8 100644 --- a/components/ScrollUp.tsx +++ b/components/ScrollUp.tsx @@ -6,7 +6,9 @@ import { useEffect } from "react"; export default function ScrollUp() { const pathname = usePathname(); - useEffect(() => window.scroll(0, 0), [pathname]); + useEffect(() => { + window.scroll(0, 0); + }, [pathname]); return null; }