Browse Source

fix router

Tanya Sashyna 5 năm trước cách đây
mục cha
commit
7e05485804
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/router.js

+ 1 - 1
src/router.js

@@ -140,7 +140,7 @@ const Router = withRouter(({ history, user }) => {
 				history.push("/profile");
 			}
 		}
-	}, [user]);
+	}, [history, user]);
 
 	return (
 		<div className="container">