Browse Source

fix router

Tanya Sashyna 5 years ago
parent
commit
7e05485804
1 changed files with 1 additions and 1 deletions
  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">