ISSUE-053 - Small change. Retired cars no longer show position in ChyronDriver.

Stopped having Norris and Perez retired at the start.
This commit is contained in:
Kyle Geib committed 2022-03-17 09:14:29 -04:00
1 parent 58da0e4895
commit c631f0e4ee
2 files changed
+4 -4

No files matched your search

@@ -1,7 +1,7 @@
import { useSpring } from "@react-spring/web"; import { useSpring } from "@react-spring/web";
import { useDispatch } from "react-redux"; import { useDispatch } from "react-redux";
import { BGChyronDriver, BGChyronSubMode, OpenState } from "../../../../types/state"; import { BGChyronDriver, BGChyronSubMode, CarStatus, OpenState } from "../../../../types/state";
import { DebugDurationProps } from "../../../../types/style"; import { DebugDurationProps } from "../../../../types/style";
import { clearChyrons } from "../../../../features/broadcast/graphics/broadcastGraphicsSlice"; import { clearChyrons } from "../../../../features/broadcast/graphics/broadcastGraphicsSlice";
import { theme } from "../../../../shared/theme"; import { theme } from "../../../../shared/theme";
@@ -133,7 +133,7 @@ export function ChyronDriver({
teamColor={teamColor} teamColor={teamColor}
/> />
<Spacer width="6px" /> <Spacer width="6px" />
{showPosFlag && ( {showPosFlag && car.status !== CarStatus.Retired && (
<VenetianBlindsTransition <VenetianBlindsTransition
visible={openState !== 0} visible={openState !== 0}
delay={500 * DDM} delay={500 * DDM}
+2 -2
View File
@@ -72,7 +72,7 @@ const initialState: RootState["event"] = {
}, },
{ {
position: 4, position: 4,
status: CarStatus.Retired, status: CarStatus.Normal,
tyre: DEFAULT_TYRE, tyre: DEFAULT_TYRE,
notices: [], notices: [],
distance: POLE_TO_START - GRID_POSITION_GAP * 3, distance: POLE_TO_START - GRID_POSITION_GAP * 3,
@@ -88,7 +88,7 @@ const initialState: RootState["event"] = {
}, },
{ {
position: 6, position: 6,
status: CarStatus.Retired, status: CarStatus.Normal,
tyre: DEFAULT_TYRE, tyre: DEFAULT_TYRE,
notices: [], notices: [],
distance: POLE_TO_START - GRID_POSITION_GAP * 5, distance: POLE_TO_START - GRID_POSITION_GAP * 5,