overtime-live-trading-utils 0.0.77 → 0.0.78

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "overtime-live-trading-utils",
3
- "version": "0.0.77",
3
+ "version": "0.0.78",
4
4
  "description": "",
5
5
  "main": "main.js",
6
6
  "scripts": {
package/src/utils/odds.ts CHANGED
@@ -453,7 +453,7 @@ export const cutOddsCloseToValue = (oddsArray, threshold = 0.952) => {
453
453
  * @returns {Array} The processed total odds market objects.
454
454
  */
455
455
  export const processTotalOdds = (totalOdds, leagueId, spreadDataForSport, typeId, defaultSpreadForLiveMarkets) => {
456
- const childMarkets = [];
456
+ const childMarkets = [] as any;
457
457
  const validTotalOdds = totalOdds.filter((odd) => odd && Math.abs(odd.selection_points % 1) === 0.5);
458
458
  const groupedOdds = groupOddsBySelectionAndPoints(validTotalOdds);
459
459
  const iterableGroupedOdds = Object.entries(groupedOdds) as any;