Skip to content

Commit

Permalink
Fix flag
Browse files Browse the repository at this point in the history
  • Loading branch information
leomendoza123 committed Nov 27, 2023
1 parent 938e7a4 commit bc8c0bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
},
},
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/app/register/register.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ import { MdePopoverModule } from '../cdk/popover'
WarningMessageModule,
],
})
export class RegisterModule {}
export class RegisterModuleLegacy {}

0 comments on commit bc8c0bc

Please sign in to comment.