overtime-live-trading-utils 3.0.2-rc.0 → 3.0.2-rc.1

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": "3.0.2-rc.0",
3
+ "version": "3.0.2-rc.1",
4
4
  "description": "",
5
5
  "main": "main.js",
6
6
  "scripts": {
package/src/utils/odds.ts CHANGED
@@ -286,10 +286,13 @@ export const createChildMarkets: (
286
286
  );
287
287
 
288
288
  homeAwayOddsWithSpreadAdjusted.forEach((data) => {
289
- let playerProps = undefined;
289
+ let playerProps = {
290
+ playerId: 0,
291
+ playerName: '',
292
+ };
290
293
  if (data.playerProps) {
291
294
  playerProps = {
292
- playerId: playersMap.get(data.playerProps.playerId.toString()), // convert from opticOdds playerId to our internal playerId
295
+ playerId: playersMap.get(data.playerProps.playerId.toString()) || 0, // convert from opticOdds playerId to our internal playerId
293
296
  playerName: data.playerProps.playerName,
294
297
  };
295
298
  }