Fix fili bac
This commit is contained in:
parent
6fcbfb4a08
commit
c69138bd07
@ -66,7 +66,10 @@
|
|||||||
let pctBG = Math.round(list.reduce((s, e) => s + (e.fields.part_acces_gen || 0), 0) / list.filter((e) => e.fields.part_acces_gen).length)
|
let pctBG = Math.round(list.reduce((s, e) => s + (e.fields.part_acces_gen || 0), 0) / list.filter((e) => e.fields.part_acces_gen).length)
|
||||||
let pctBT = Math.round(list.reduce((s, e) => s + (e.fields.part_acces_tec || 0), 0) / list.filter((e) => e.fields.part_acces_tec).length)
|
let pctBT = Math.round(list.reduce((s, e) => s + (e.fields.part_acces_tec || 0), 0) / list.filter((e) => e.fields.part_acces_tec).length)
|
||||||
let pctBP = Math.round(list.reduce((s, e) => s + (e.fields.part_acces_pro || 0), 0) / list.filter((e) => e.fields.part_acces_pro).length)
|
let pctBP = Math.round(list.reduce((s, e) => s + (e.fields.part_acces_pro || 0), 0) / list.filter((e) => e.fields.part_acces_pro).length)
|
||||||
|
if (!pctBG) pctBG = 0;
|
||||||
|
if (!pctBT) pctBT = 0;
|
||||||
|
if (!pctBP) pctBP = 0;
|
||||||
|
|
||||||
this.state.bacStats = [
|
this.state.bacStats = [
|
||||||
{
|
{
|
||||||
name: "Général",
|
name: "Général",
|
||||||
|
Loading…
Reference in New Issue
Block a user