Fix filtered out age 0 error

This commit is contained in:
Dominic Ferrando
2026-07-03 19:59:06 -04:00
parent b407c2de2e
commit 13195dfd0a
+1 -1
View File
@@ -473,7 +473,7 @@ export class Standards {
// now that we generated metric data, remove the old data
this.standardsData[activity].standards = this.standardsData[
activity
].standards.filter((s) => s.metrics.age);
].standards.filter((s) => s.metrics.age != null);
} else if (generator.metric === "weight") {
for (const gender of Object.values(Gender)) {
for (const age of this.agesFor(activity, gender)) {