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/main.js +1 -1
- package/package.json +1 -1
- package/src/utils/odds.ts +5 -2
package/package.json
CHANGED
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 =
|
|
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
|
}
|