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