This commit is contained in:
Eduard Heimbuch
2020-08-10 09:28:54 +02:00
parent fa3f3bd135
commit 5e7739480b
2 changed files with 12 additions and 6 deletions

View File

@@ -61,12 +61,12 @@ class Main extends React.Component<Props> {
if (authenticated) {
url = "/repos/";
}
if (!me) {
url = "/login";
}
if (redirectUrlFactory) {
url = redirectUrlFactory(this.props);
}
if (!me) {
url = "/login";
}
return (
<div className="main">
<Switch>
@@ -95,6 +95,7 @@ class Main extends React.Component<Props> {
renderAll={true}
props={{
authenticated,
me,
links
}}
/>