mario-education 2.4.61-admin → 2.4.62-admin

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.
@@ -26771,23 +26771,27 @@ var ColumnChartAndPercent = function ColumnChartAndPercent(_ref) {
26771
26771
  })), !isPDF && React.createElement("div", {
26772
26772
  className: "w-100 d-flex gap-2 flex-wrap " + styles$1["listItem"]
26773
26773
  }, data.map(function (month, index) {
26774
- return React.createElement("div", {
26775
- className: "" + styles$1["item-legend"],
26776
- key: index
26777
- }, React.createElement("div", {
26778
- className: "" + styles$1["item"]
26779
- }, React.createElement("div", {
26780
- className: "" + styles$1["mark-custom"],
26781
- style: {
26782
- backgroundColor: COLOR_CHART_AND_PERCENTS[index]
26783
- }
26784
- }), React.createElement("label", {
26785
- className: "" + styles$1["label-legend-custom"]
26786
- }, month)), React.createElement("div", {
26787
- className: "" + styles$1["percent"]
26788
- }, React.createElement("label", {
26789
- className: "m-0"
26790
- }, avg[index] ? avg[index] + "%" : "0.00%")));
26774
+ if (!!avg && avg[index] > 0) {
26775
+ return React.createElement("div", {
26776
+ className: "" + styles$1["item-legend"],
26777
+ key: index
26778
+ }, React.createElement("div", {
26779
+ className: "" + styles$1["item"]
26780
+ }, React.createElement("div", {
26781
+ className: "" + styles$1["mark-custom"],
26782
+ style: {
26783
+ backgroundColor: COLOR_CHART_AND_PERCENTS[index]
26784
+ }
26785
+ }), React.createElement("label", {
26786
+ className: "" + styles$1["label-legend-custom"]
26787
+ }, month)), React.createElement("div", {
26788
+ className: "" + styles$1["percent"]
26789
+ }, React.createElement("label", {
26790
+ className: "m-0"
26791
+ }, avg[index] ? avg[index].toFixed(2) + "%" : "0.00%")));
26792
+ }
26793
+
26794
+ return null;
26791
26795
  })));
26792
26796
  };
26793
26797