diff --git a/src/features/category/ui/AllProduct.tsx b/src/features/category/ui/AllProduct.tsx index 3da3e6e..080b4a7 100644 --- a/src/features/category/ui/AllProduct.tsx +++ b/src/features/category/ui/AllProduct.tsx @@ -54,6 +54,10 @@ const AllProducts = () => { router.push(`${pathname}?${params.toString()}`); }; + useEffect(() => { + window.scrollTo({ top: 0, behavior: 'smooth' }); + }, [page]); + return (