diff --git a/src/app/pages/base-page/base.component.ts b/src/app/pages/base-page/base.component.ts index 43bb4053..d55c7b54 100644 --- a/src/app/pages/base-page/base.component.ts +++ b/src/app/pages/base-page/base.component.ts @@ -11,7 +11,7 @@ import {ConfigService} from '../../services/config.service'; */ export class BaseComponent implements OnInit { - constructor(private config: ConfigService) { + constructor(public config: ConfigService) { } ngOnInit() { diff --git a/src/app/pages/voting/voting-summary/voting-summary.component.ts b/src/app/pages/voting/voting-summary/voting-summary.component.ts index 4721a633..13889b43 100644 --- a/src/app/pages/voting/voting-summary/voting-summary.component.ts +++ b/src/app/pages/voting/voting-summary/voting-summary.component.ts @@ -53,7 +53,7 @@ export class VotingSummaryComponent implements OnInit { }) console.log('this.counters', this.counters); let choiceTitleFound = this.pollconfig.choices.find(elem => { - return elem.id === parseInt(choice_id_max) + return elem.id == choice_id_max }) this.preferred = choiceTitleFound.name; console.log('choiceTitleFound', choiceTitleFound)