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
|
// now that we generated metric data, remove the old data
|
||||||
this.standardsData[activity].standards = this.standardsData[
|
this.standardsData[activity].standards = this.standardsData[
|
||||||
activity
|
activity
|
||||||
].standards.filter((s) => s.metrics.age);
|
].standards.filter((s) => s.metrics.age != null);
|
||||||
} else if (generator.metric === "weight") {
|
} else if (generator.metric === "weight") {
|
||||||
for (const gender of Object.values(Gender)) {
|
for (const gender of Object.values(Gender)) {
|
||||||
for (const age of this.agesFor(activity, gender)) {
|
for (const age of this.agesFor(activity, gender)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user