web: Common: Fixed PublicRoute renderComponent on change component prop
This commit is contained in:
parent
bdc055fa6d
commit
81f5c2e9ee
@ -20,7 +20,7 @@ export const PublicRoute = ({ component: Component, ...rest }) => {
|
||||
}
|
||||
|
||||
return <Component {...props} />;
|
||||
}, [token]);
|
||||
}, [token, Component]);
|
||||
|
||||
return (
|
||||
<Route
|
||||
|
Loading…
Reference in New Issue
Block a user