Skip to content

Commit

Permalink
feat: #1055 (cont) - live status lib-use;
Browse files Browse the repository at this point in the history
  • Loading branch information
migbash committed Feb 28, 2023
1 parent c47c9df commit c085fd4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ COMPONENT JS (w/ TS)
//#endregion ➤ Assets Imports
import WidgetTitle from '$lib/components/Widget-Title.svelte';
import { FIXTURE_LIVE_TIME_OPT } from 'betarena-types/src/api/sportmonks';
import LivescoresFixtureRow from './Livescores_Fixture_Row.svelte';
import LivescoresTopRow from './Livescores_Top_Row.svelte';
import LoaderRow from './loaders/Loader_Row.svelte';
Expand Down Expand Up @@ -223,7 +224,7 @@ COMPONENT JS (w/ TS)
// NOTE:DOC: adding for await ... of > for await ... of causes (double) iteration
for (let [date, fixturesArr] of fixturesGroupByDateMap) {
for (let fixture of fixturesArr) {
if (fixture?.status == 'LIVE') {
if (FIXTURE_LIVE_TIME_OPT.includes(fixture?.status)) {
numOfFixturesLive++
liveLeaguesIds.push(fixture?.league_id)
}
Expand Down

0 comments on commit c085fd4

Please sign in to comment.