🐛 fix build

develop
Baptiste Lemoine 3 years ago
parent a3e243ed19
commit 10497c9cb0
  1. 2
      src/app/pages/base-page/base.component.ts
  2. 2
      src/app/pages/voting/voting-summary/voting-summary.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() {

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

Loading…
Cancel
Save