@sensiblestats/widget-react 0.48.3 → 0.48.5
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 +14 -0
- package/dist/index.cjs +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -572,11 +572,14 @@ function toMarketOddsVM(card) {
|
|
|
572
572
|
matchOddsId: typeof r.matchOddsId === "number" ? r.matchOddsId : void 0,
|
|
573
573
|
quotedAtUtc: str(r.quotedAtUtc),
|
|
574
574
|
isMain: r.isMainLine !== false,
|
|
575
|
+
// === true, not !== false: a server that has not shipped the field yet leaves it undefined,
|
|
576
|
+
// and undefined must read as open rather than hiding every price on the card.
|
|
577
|
+
isSuspended: r.isSuspended === true,
|
|
575
578
|
previousOdds: previous !== void 0 && direction !== void 0 ? previous.toFixed(2) : void 0,
|
|
576
579
|
movementDirection: previous !== void 0 && direction !== void 0 ? direction : void 0
|
|
577
580
|
};
|
|
578
581
|
};
|
|
579
|
-
const vms = rows.map(toRow).filter((r) => r.selection && r.odds);
|
|
582
|
+
const vms = rows.map(toRow).filter((r) => r.selection && r.odds && !r.isSuspended);
|
|
580
583
|
const home = str(card.homeTeamName);
|
|
581
584
|
const away = str(card.awayTeamName);
|
|
582
585
|
const updated = rows.map((r) => str(r.quotedAtUtc)).filter((v) => !!v).sort();
|
|
@@ -3581,14 +3584,14 @@ function MonitorMatchCard({ match, promotedPins, monitor, ui, slip }) {
|
|
|
3581
3584
|
/* @__PURE__ */ jsx47("b", { className: "ss-w-mon-bar-home", style: { width: `${homePct}%` } }),
|
|
3582
3585
|
/* @__PURE__ */ jsx47("i", { className: "ss-w-mon-bar-away", style: { width: `${awayPct}%` } })
|
|
3583
3586
|
] }),
|
|
3584
|
-
row.market && /* @__PURE__ */ jsxs42("div", { className: promoted ? "ss-w-mon-stat-mkt ss-w-mon-mkt" : "ss-w-mon-stat-mkt", children: [
|
|
3587
|
+
row.market && !row.market.isSuspended && /* @__PURE__ */ jsxs42("div", { className: promoted ? "ss-w-mon-stat-mkt ss-w-mon-mkt" : "ss-w-mon-stat-mkt", children: [
|
|
3585
3588
|
/* @__PURE__ */ jsxs42("span", { children: [
|
|
3586
3589
|
row.market.marketLabel,
|
|
3587
3590
|
" \xB7 ",
|
|
3588
3591
|
row.market.selectionLabel
|
|
3589
3592
|
] }),
|
|
3590
3593
|
/* @__PURE__ */ jsxs42("span", { className: "ss-w-mon-stat-mkt-right", children: [
|
|
3591
|
-
|
|
3594
|
+
typeof row.market.price === "number" && /* @__PURE__ */ jsx47("span", { className: "ss-w-mon-price", children: row.market.price.toFixed(2) }),
|
|
3592
3595
|
/* @__PURE__ */ jsx47(
|
|
3593
3596
|
SlipButton,
|
|
3594
3597
|
{
|