@dcrackel/hematournamentui 1.0.425 → 1.0.427

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.
@@ -35948,6 +35948,10 @@ const TL = /* @__PURE__ */ ie(vL, [["render", OL]]), RL = {
35948
35948
  return Array.isArray(n) ? [...n].sort((e, t) => t.WinPercentage !== e.WinPercentage ? t.WinPercentage - e.WinPercentage : t.TotalWins !== e.TotalWins ? t.TotalWins - e.TotalWins : t.Indicator !== e.Indicator ? t.Indicator - e.Indicator : t.PointsScored - e.PointsScored) : (console.error("Invalid input to sortFencersByCriteria:", n), null);
35949
35949
  },
35950
35950
  markTopFencers(n, e) {
35951
+ if (!Array.isArray(n)) {
35952
+ console.error("Invalid input to markTopFencers:", n);
35953
+ return;
35954
+ }
35951
35955
  n.forEach((t, r) => {
35952
35956
  t.Promoted = r < e;
35953
35957
  });