We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23dacaa commit ae78a7eCopy full SHA for ae78a7e
public/statistics.js
@@ -139,8 +139,8 @@ function parseSuperheroStats(data){
139
})
140
for (const [_, value] of Object.entries(statistics)) {
141
var avg=0;
142
- if ((value[1]+value[0]) > 0){
143
- avg = value[1] / (value[0] + value[1]);
+ if ((value[1]+value[2]) > 0){
+ avg = value[1] / (value[2] + value[1]);
144
// Round to 2 decimal places if necessary.
145
avg = Math.round((avg + Number.EPSILON) * 100) / 100;
146
}
0 commit comments