File tree Expand file tree Collapse file tree
libs/frontend/pages/competition/event/src/pages Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 PLATFORM_ID ,
66 computed ,
77 effect ,
8- inject
8+ inject ,
99} from '@angular/core' ;
1010import { ReactiveFormsModule } from '@angular/forms' ;
1111import { MatButtonModule } from '@angular/material/button' ;
@@ -108,8 +108,7 @@ export class DetailEncounterComponent {
108108 }
109109
110110 getGameLabel ( game : number ) {
111- const gameType = this . encounterCompetition ( ) ?. drawCompetition ?. subEventCompetition
112- ?. eventType as 'M' | 'F' | 'MX' ;
111+ const gameType = this . encounterCompetition ( ) ?. drawCompetition ?. subEventCompetition ?. eventType ;
113112
114113 if ( ! gameType ) {
115114 return [ ] ;
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ export class EditEncounterComponent implements OnInit {
3737 private seoService = inject ( SeoService ) ;
3838 private route = inject ( ActivatedRoute ) ;
3939 private breadcrumbsService = inject ( BreadcrumbService ) ;
40- private apollo = inject ( Apollo ) ;
4140 private platformId = inject < string > ( PLATFORM_ID ) ;
4241 private formBuilder = inject ( FormBuilder ) ;
4342 private matdialog = inject ( MatDialog ) ;
@@ -146,10 +145,7 @@ export class EditEncounterComponent implements OnInit {
146145 }
147146
148147 getGameLabel ( game : number ) {
149- const gameType = this . encounterCompetition . drawCompetition ?. subEventCompetition ?. eventType as
150- | 'M'
151- | 'F'
152- | 'MX' ;
148+ const gameType = this . encounterCompetition . drawCompetition ?. subEventCompetition ?. eventType ;
153149
154150 if ( ! gameType ) {
155151 return [ ] ;
You can’t perform that action at this time.
0 commit comments