Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
change variable from let to const
  • Loading branch information
andresacg30 committed Sep 28, 2022
commit 3ff399804477e48ae21a2419c789607136ed0ce8
6 changes: 3 additions & 3 deletions src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ import { UsersComponent } from './modules/users/pages/users.component';
import { EnvironmentType } from 'src/environments/enum';
import { environment } from 'src/environments/environment';

let isLegacyProd: boolean = environment.production === EnvironmentType.TT_PROD_LEGACY;
const isLegacyProd: boolean = environment.production === EnvironmentType.TT_PROD_LEGACY;
let routes: Routes;

if (isLegacyProd) {
routes = [
{
{
path: '',
children: [
{ path: '**', redirectTo: 'redirect-message' },
],
},
]
];

} else {
routes = [
Expand Down