@local-civics/mgmt-ui 0.1.136 → 0.1.137

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1458,7 +1458,6 @@ function Table$7(props) {
1458
1458
  const Student = (props) => {
1459
1459
  const [tab, setTab] = useState("badges");
1460
1460
  const numberOfBadges = props.badges.length;
1461
- const percentageOfBadgesEarned = numberOfBadges > 0 ? props.badges.filter((b) => b.isComplete).length / numberOfBadges : 0;
1462
1461
  return /* @__PURE__ */ React.createElement(Container, { size: "lg", py: "xl" }, /* @__PURE__ */ React.createElement(Stack$4, { spacing: "md" }, /* @__PURE__ */ React.createElement(Grid, { gutter: "md" }, /* @__PURE__ */ React.createElement(Grid.Col, { sm: "auto" }, /* @__PURE__ */ React.createElement(UnstyledButton, { onClick: props.onBackClick }, /* @__PURE__ */ React.createElement(
1463
1462
  Badge$1,
1464
1463
  {
@@ -1481,13 +1480,13 @@ const Student = (props) => {
1481
1480
  },
1482
1481
  {
1483
1482
  title: "LESSON COMPLETION",
1484
- value: props.percentageOfLessonsCompleted,
1485
- unit: "%"
1483
+ value: props.numberOfLessonsCompleted,
1484
+ unit: ""
1486
1485
  },
1487
1486
  {
1488
1487
  title: "BADGE COMPLETION",
1489
- value: percentageOfBadgesEarned,
1490
- unit: "%"
1488
+ value: numberOfBadges,
1489
+ unit: ""
1491
1490
  }
1492
1491
  ] }), /* @__PURE__ */ React.createElement(Stack$4, { spacing: 0 }, /* @__PURE__ */ React.createElement(
1493
1492
  Tabs,