Fix fili bac

This commit is contained in:
HORVILLE 2023-03-31 17:17:58 +02:00
parent 6fcbfb4a08
commit c69138bd07

View File

@ -66,6 +66,9 @@
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 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 = [
{