From 10497c9cb09873f3ede8b75729d2f444d12e5338 Mon Sep 17 00:00:00 2001 From: Baptiste Lemoine Date: Thu, 16 Jan 2020 16:46:19 +0100 Subject: [PATCH] :bug: fix build --- src/app/pages/base-page/base.component.ts | 2 +- src/app/pages/voting/voting-summary/voting-summary.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)