Fix filtered out age 0 error
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user