Skip to content

Commit

Permalink
#1776 :: fix - probability widget;
Browse files Browse the repository at this point in the history
  • Loading branch information
migbash committed Oct 20, 2023
1 parent 0e3b247 commit 3737e0e
Showing 1 changed file with 18 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import userBetarenaSettings from '$lib/store/user-settings.js';
import { getImageBgColor } from '$lib/utils/color_thief';
import { googleActionsStr } from '$lib/utils/google.js';
import { googleEventLog, viewport_change } from '$lib/utils/platform-functions.js';
import { checkNull, googleEventLog, viewport_change } from '$lib/utils/platform-functions.js';
import WidgetNoData from '$lib/components/Widget-No-Data.svelte';
import WidgetTitle from '$lib/components/Widget-Title.svelte';
Expand Down Expand Up @@ -107,6 +107,8 @@
(
)
{
FIXTURE_PROB_DATA.odds = null;
let count = 0;
for (const m_sportBook of $sessionStore?.sportbook_list || [])
Expand All @@ -117,6 +119,7 @@
const firebase_sportbook_title = firebaseSportbook?.sportbook;
const if_M_0 =
m_sportBookTitle.toLowerCase() == firebase_sportbook_title.toLowerCase()
&& FIXTURE_PROB_DATA?.id == firebaseSportbook?.gameid
&& firebaseSportbook?.markets != null
&& firebaseSportbook?.markets?.['1X2FT'] != null
&& firebaseSportbook?.markets?.['1X2FT']?.data[0]?.value != null
Expand All @@ -141,10 +144,9 @@
SPORTBOOK_INFO = m_sportBook;
const imageURL: string = SPORTBOOK_INFO?.image;
getImageBgColor
(
imageURL,
SPORTBOOK_INFO?.image,
imageVar
);
Expand All @@ -153,6 +155,19 @@
}
}
// ▓▓ CHECK
// ▓▓ missing assigned sportbooks, due to missing fixture odds.
// ▓▓ assign default geo-location main betting-site.
if (checkNull(SPORTBOOK_INFO))
{
SPORTBOOK_INFO = $sessionStore?.sportbook_main;
getImageBgColor
(
SPORTBOOK_INFO?.image,
imageVar
);
}
FIXTURE_PROB_DATA = FIXTURE_PROB_DATA;
}
Expand Down

0 comments on commit 3737e0e

Please sign in to comment.