web: Common: Fixed PublicRoute renderComponent on change component prop

This commit is contained in:
Alexey Safronov 2019-12-26 16:26:50 +03:00
parent bdc055fa6d
commit 81f5c2e9ee

View File

@ -20,7 +20,7 @@ export const PublicRoute = ({ component: Component, ...rest }) => {
}
return <Component {...props} />;
}, [token]);
}, [token, Component]);
return (
<Route