diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 2a55841ddf..222b3437f4 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -93,7 +93,7 @@ const routes: Routes = [ canMatch: [RegisterTogglGuard], canActivateChild: [LanguageGuard, RegisterGuard], loadChildren: () => { - return localStorage.getItem('REGISTRATION_2_0') !== 'enable' + return localStorage.getItem('REGISTRATION_2_0') !== 'enabled' ? import('./register/register.module').then( (m) => m.RegisterModuleLegacy )