message: Handle integer objectives better
diff: @@ -613,8 +613,12 @@ function makeItem(
  }
  if (createdItem.objectives) {
  - createdItem.complete = createdItem.objectives.every((o) => o.complete);
  - const length = createdItem.objectives.length;
  + // Counter objectives for the new emblems shouldn't count.
  + const realObjectives = createdItem.objectives.filter((o) => o.displayStyle !== 'integer');
  +
  + const length = realObjectives.length;
  + if (length > 0) {
  + createdItem.complete = realObjectives.every((o) => o.complete);
  createdItem.percentComplete = sum(createdItem.objectives, (objective) => {
  if (objective.completionValue) {
  return Math.min(1, objective.progress / objective.completionValue) / length;
  @@ -622,10 +626,7 @@ function makeItem(
  return 0;
  }
  });
  -
  - if (createdItem.objectives.every((o) => o.displayStyle === 'integer')) {
  - createdItem.complete = false;
  - createdItem.percentComplete = 0;
  + } else {
  createdItem.hidePercentage = true;
  }
  }
  