@sensiblestats/widget-react 0.48.3 → 0.48.4

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.48.4
4
+
5
+ ### Patch Changes
6
+
7
+ - A suspended market no longer appears on the live match card. The whole betting line is dropped rather than showing a price the bookmaker is not taking next to an Add to slip button that can only fail.
8
+
3
9
  ## 0.48.3
4
10
 
5
11
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -3618,14 +3618,14 @@ function MonitorMatchCard({ match, promotedPins, monitor, ui, slip }) {
3618
3618
  /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("b", { className: "ss-w-mon-bar-home", style: { width: `${homePct}%` } }),
3619
3619
  /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("i", { className: "ss-w-mon-bar-away", style: { width: `${awayPct}%` } })
3620
3620
  ] }),
3621
- row.market && /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: promoted ? "ss-w-mon-stat-mkt ss-w-mon-mkt" : "ss-w-mon-stat-mkt", children: [
3621
+ row.market && !row.market.isSuspended && /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: promoted ? "ss-w-mon-stat-mkt ss-w-mon-mkt" : "ss-w-mon-stat-mkt", children: [
3622
3622
  /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("span", { children: [
3623
3623
  row.market.marketLabel,
3624
3624
  " \xB7 ",
3625
3625
  row.market.selectionLabel
3626
3626
  ] }),
3627
3627
  /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("span", { className: "ss-w-mon-stat-mkt-right", children: [
3628
- row.market.isSuspended ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "ss-w-mon-susp", children: ui.suspendedLabel }) : typeof row.market.price === "number" && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "ss-w-mon-price", children: row.market.price.toFixed(2) }),
3628
+ typeof row.market.price === "number" && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "ss-w-mon-price", children: row.market.price.toFixed(2) }),
3629
3629
  /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
3630
3630
  SlipButton,
3631
3631
  {