@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 +6 -0
- package/dist/index.cjs +3 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3765,6 +3765,9 @@ import { jsx as jsx50, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
|
3765
3765
|
function CompetitionGroup({ group, open, onToggle, states, stale, nowMs, ui, monitor, disambiguate = false }) {
|
|
3766
3766
|
const own = group.matches.filter((m) => !isTreatedLive(states[m.matchId], stale, nowMs));
|
|
3767
3767
|
const hasLive = own.length !== group.matches.length;
|
|
3768
|
+
if (own.length === 0) {
|
|
3769
|
+
return null;
|
|
3770
|
+
}
|
|
3768
3771
|
return /* @__PURE__ */ jsxs45("div", { className: "ss-w-grp", children: [
|
|
3769
3772
|
/* @__PURE__ */ jsxs45("button", { type: "button", className: "ss-w-grp-head", "aria-expanded": open, onClick: onToggle, children: [
|
|
3770
3773
|
/* @__PURE__ */ jsx50("span", { className: "ss-w-grp-chev", children: open ? "\u25BE" : "\u25B8" }),
|