diff --git a/src/stores/splatfests.mjs b/src/stores/splatfests.mjs index b5e01a5..dd3ef2d 100644 --- a/src/stores/splatfests.mjs +++ b/src/stores/splatfests.mjs @@ -43,12 +43,20 @@ function defineSplatfestRegionStore(region) { // TODO: Eventually this needs to be handled on a per-region basis. const tricolor = computed(() => { - let fest = useSchedulesDataStore().data?.currentFest; + let {currentFest: fest, vsStages} = useSchedulesDataStore().data ?? {}; if (!fest) { return null; } + // Move the thumbnail image to "thumbnailImage" and pull in the high-res image for the stage + if (!('thumbnailImage' in fest.tricolorStage)) { + fest.tricolorStage.thumbnailImage = fest.tricolorStage.image; + fest.tricolorStage.image = + vsStages.nodes.find(s => s.id === fest.tricolorStage.id)?.originalImage || + fest.tricolorStage.image; + } + return { ...fest, isTricolorActive: time.isActive(fest.midtermTime, fest.endTime),