Skip to content

Commit

Permalink
add upnextRun and ondeckRuns in composable
Browse files Browse the repository at this point in the history
  • Loading branch information
yagamuu committed Feb 12, 2024
1 parent f3e96f7 commit 1b0fd9f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/composable/runData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ export function useRunData() {
return runDataArray?.data?.slice(index, index + 3);
});

const upnextRun = computed(() => upcomingRuns?.value?.[0]);

const ondeckRuns = computed(() => upcomingRuns.value?.slice(1));

const upcomingStartIn = computed(() => {
if (!upcomingRuns.value || !upcomingRuns.value[1]) {
return [];
Expand Down Expand Up @@ -70,6 +74,8 @@ export function useRunData() {
runDataActiveRun,
players,
upcomingRuns,
upnextRun,
ondeckRuns,
upcomingStartIn,
runTitle,
runCategory,
Expand Down

0 comments on commit 1b0fd9f

Please sign in to comment.