Skip to content

Commit 90b51e2

Browse files
committed
abigails comments
1 parent bc8453e commit 90b51e2

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

src/app/app-routing.module.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,10 @@ import { V2RedirectComponent } from './modules/v2-redirect/v2-redirect.component
1515
import { EnvironmentType } from 'src/environments/enum';
1616
import { environment } from 'src/environments/environment';
1717

18-
const isLegacyProd: boolean = environment.production === EnvironmentType.TT_DEV;
18+
const isNotLegacy: boolean = environment.production !== EnvironmentType.TT_DEV;
1919
let routes: Routes;
2020

21-
if (isLegacyProd) {
22-
routes = [
23-
{
24-
path: '',
25-
children: [
26-
{ path: '**', component: V2RedirectComponent },
27-
],
28-
},
29-
];
30-
31-
} else {
21+
if (isNotLegacy) {
3222
routes = [
3323
{
3424
path: '',
@@ -46,6 +36,16 @@ if (isLegacyProd) {
4636
},
4737
{ path: 'login', component: LoginComponent }
4838
];
39+
40+
} else {
41+
routes = [
42+
{
43+
path: '',
44+
children: [
45+
{ path: '**', component: V2RedirectComponent },
46+
],
47+
},
48+
];
4949
}
5050
@NgModule({
5151
imports: [RouterModule.forRoot(routes)],

src/app/modules/v2-redirect/v2-redirect.component.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,4 +161,4 @@ body {
161161
top: 0;
162162
z-index: 10;
163163
}
164-
}
164+
}

src/app/modules/v2-redirect/v2-redirect.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ import { Component } from '@angular/core';
66
styleUrls: ['./v2-redirect.component.css']
77
})
88
export class V2RedirectComponent {
9-
9+
1010
}

0 commit comments

Comments
 (0)