@local-civics/mgmt-ui 0.1.149 → 0.1.151

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
@@ -1460,7 +1460,7 @@ function Table$7(props) {
1460
1460
 
1461
1461
  const Student = (props) => {
1462
1462
  const [tab, setTab] = useState("badges");
1463
- const numberOfBadges = props.badges.length;
1463
+ const numberOfBadgesCompleted = props.badges.length > 0 ? props.badges.filter((b) => b.isComplete).length : 0;
1464
1464
  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(
1465
1465
  Badge$1,
1466
1466
  {
@@ -1488,7 +1488,7 @@ const Student = (props) => {
1488
1488
  },
1489
1489
  {
1490
1490
  title: "BADGE COMPLETION",
1491
- value: numberOfBadges,
1491
+ value: numberOfBadgesCompleted,
1492
1492
  unit: ""
1493
1493
  }
1494
1494
  ] }), /* @__PURE__ */ React.createElement(Stack$4, { spacing: 0 }, /* @__PURE__ */ React.createElement(