From bc8c0bc91e93c8e2418a3ac441ba55627fe625ba Mon Sep 17 00:00:00 2001 From: Leonardo Mendoza Date: Mon, 27 Nov 2023 10:09:06 -0600 Subject: [PATCH] Fix flag --- src/app/app-routing.module.ts | 6 +++--- src/app/register/register.module.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index d291608be3..a124e65118 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -93,8 +93,8 @@ const routes: Routes = [ canMatch: [RegisterTogglGuard], canActivateChild: [LanguageGuard, RegisterGuard], loadChildren: () => { - return localStorage.getItem('REGISTRATION_2_0') === 'enable' - ? import('./register/register.module').then((m) => m.RegisterModule) + return localStorage.getItem('REGISTRATION_2_0') !== 'enable' + ? import('./register/register.module').then((m) => m.RegisterModuleLegacy) : import('./register2/register.module').then((m) => m.Register2Module) }, }, @@ -156,7 +156,7 @@ const routes: Routes = [ matcher: routerReactivation, canActivateChild: [LanguageGuard, RegisterGuard], loadChildren: () => - import('./register/register.module').then((m) => m.RegisterModule), + import('./register/register.module').then((m) => m.RegisterModuleLegacy), }, { path: ApplicationRoutes.selfService, diff --git a/src/app/register/register.module.ts b/src/app/register/register.module.ts index 4757a9c74a..f7519921a0 100644 --- a/src/app/register/register.module.ts +++ b/src/app/register/register.module.ts @@ -71,4 +71,4 @@ import { MdePopoverModule } from '../cdk/popover' WarningMessageModule, ], }) -export class RegisterModule {} +export class RegisterModuleLegacy {}