@sensiblestats/widget-react 0.47.1 → 0.47.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @sensiblestats/widget-react
2
2
 
3
+ ## 0.47.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Hide a Today-tab competition group whose every match has been hoisted into the live band, instead of rendering an empty header with a count of 0.
8
+
3
9
  ## 0.47.1
4
10
 
5
11
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -3802,6 +3802,9 @@ var import_jsx_runtime50 = require("react/jsx-runtime");
3802
3802
  function CompetitionGroup({ group, open, onToggle, states, stale, nowMs, ui, monitor, disambiguate = false }) {
3803
3803
  const own = group.matches.filter((m) => !isTreatedLive(states[m.matchId], stale, nowMs));
3804
3804
  const hasLive = own.length !== group.matches.length;
3805
+ if (own.length === 0) {
3806
+ return null;
3807
+ }
3805
3808
  return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "ss-w-grp", children: [
3806
3809
  /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("button", { type: "button", className: "ss-w-grp-head", "aria-expanded": open, onClick: onToggle, children: [
3807
3810
  /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "ss-w-grp-chev", children: open ? "\u25BE" : "\u25B8" }),