Island UI: fix a bug that causes page refresh to redirect to getting started page

This commit is contained in:
VakarisZ 2021-07-16 11:47:13 +03:00
parent 42936730a6
commit 67968459ae
1 changed files with 3 additions and 2 deletions

View File

@ -62,8 +62,9 @@ class AppComponent extends AuthComponent {
super(props);
let completedSteps = new CompletedSteps(false);
this.state = {
loading: true,
completedSteps: completedSteps,
islandMode: null,
islandMode: undefined,
noAuthLoginAttempted: undefined
};
this.interval = undefined;
@ -158,7 +159,7 @@ class AppComponent extends AuthComponent {
needsRedirectionToGettingStarted = (route_path) => {
return route_path === Routes.LandingPage &&
this.state.islandMode !== null
this.state.islandMode !== null && this.state.islandMode !== undefined
}
redirectTo = (userPath, targetPath) => {