overtime-live-trading-utils 0.0.80 → 0.0.81
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 +1 -1
- package/src/utils/odds.ts +1 -1
package/package.json
CHANGED
package/src/utils/odds.ts
CHANGED
|
@@ -413,7 +413,7 @@ export const groupAndFormatSpreadOdds = (oddsArray, commonData) => {
|
|
|
413
413
|
return acc;
|
|
414
414
|
}, {}) as any;
|
|
415
415
|
// Format the grouped odds into the desired output
|
|
416
|
-
const formattedOdds = Object.entries(groupedOdds as any).reduce((acc, [key, value]) => {
|
|
416
|
+
const formattedOdds = (Object.entries(groupedOdds as any) as any).reduce((acc, [key, value]) => {
|
|
417
417
|
const line = parseFloat(key);
|
|
418
418
|
if ((value as any).home !== null && (value as any).away !== null) {
|
|
419
419
|
acc.push({
|