🐛 fix build

This commit is contained in:
Baptiste Lemoine 2020-01-16 16:46:19 +01:00
parent a3e243ed19
commit 10497c9cb0
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ import {ConfigService} from '../../services/config.service';
*/
export class BaseComponent implements OnInit {
constructor(private config: ConfigService) {
constructor(public config: ConfigService) {
}
ngOnInit() {

View File

@ -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)