@sensiblestats/widget-react 0.48.4 → 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 +8 -0
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -1
- 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();
|