diff --git a/src/views/Dashboard/layouts/Main/Addresses/index.js b/src/views/Dashboard/layouts/Main/Addresses/index.js
index 75add4f..6e2faf1 100644
--- a/src/views/Dashboard/layouts/Main/Addresses/index.js
+++ b/src/views/Dashboard/layouts/Main/Addresses/index.js
@@ -1,4 +1,4 @@
-import React from "react";
+import React, { useEffect } from "react";
import { connect } from "react-redux";
import {
@@ -40,6 +40,11 @@ const ProfileAddress = ({
getList();
}, []);
+ useEffect(() => {
+ // alert();
+ window.scrollTo(0, 0);
+ }, []);
+
return (
{
+ window.scrollTo(0, 0);
+ }, []);
+
return isMobile ? (
diff --git a/src/views/Favorites/index.js b/src/views/Favorites/index.js
index 5d2a774..2bf14ca 100644
--- a/src/views/Favorites/index.js
+++ b/src/views/Favorites/index.js
@@ -1,4 +1,4 @@
-import React from "react";
+import React, { useEffect } from "react";
import { connect } from "react-redux";
import { publicApi, userFavorite } from "../../redux/actions";
@@ -20,6 +20,10 @@ const Favorites = ({
getList();
}, []);
+ useEffect(() => {
+ // alert();
+ window.scrollTo(0, 0);
+ }, []);
return (
{bookmarkList.map((bookmark, index) => (