@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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @sensiblestats/widget-react
|
|
2
2
|
|
|
3
|
+
## 0.48.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- A suspended selection no longer appears in the market-odds ladder. The wire row now carries isSuspended, so the client can drop prices the bookmaker is not taking instead of offering an Add to slip button that always fails.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @sensiblestats/widget-sdk@0.35.1
|
|
10
|
+
|
|
3
11
|
## 0.48.4
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -609,11 +609,14 @@ function toMarketOddsVM(card) {
|
|
|
609
609
|
matchOddsId: typeof r.matchOddsId === "number" ? r.matchOddsId : void 0,
|
|
610
610
|
quotedAtUtc: str(r.quotedAtUtc),
|
|
611
611
|
isMain: r.isMainLine !== false,
|
|
612
|
+
// === true, not !== false: a server that has not shipped the field yet leaves it undefined,
|
|
613
|
+
// and undefined must read as open rather than hiding every price on the card.
|
|
614
|
+
isSuspended: r.isSuspended === true,
|
|
612
615
|
previousOdds: previous !== void 0 && direction !== void 0 ? previous.toFixed(2) : void 0,
|
|
613
616
|
movementDirection: previous !== void 0 && direction !== void 0 ? direction : void 0
|
|
614
617
|
};
|
|
615
618
|
};
|
|
616
|
-
const vms = rows.map(toRow).filter((r) => r.selection && r.odds);
|
|
619
|
+
const vms = rows.map(toRow).filter((r) => r.selection && r.odds && !r.isSuspended);
|
|
617
620
|
const home = str(card.homeTeamName);
|
|
618
621
|
const away = str(card.awayTeamName);
|
|
619
622
|
const updated = rows.map((r) => str(r.quotedAtUtc)).filter((v) => !!v).sort();
|