Tanya Sashyna il y a 5 ans
Parent
commit
7e05485804
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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">