Skip to content

Commit a90d742

Browse files
fgctariknz
andauthored
Show the last track rubbered state that isn´t 'carry over' instead of the one from the first session (#19)
Co-authored-by: Tarik Alani <[email protected]>
1 parent 8370bfd commit a90d742

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/frontend/components/Weather/hooks/useTrackRubberedState.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ export const useTrackRubberedState = () => {
55
return useStore(
66
useSessionStore,
77
(state) =>
8-
state.session?.SessionInfo?.Sessions?.find(
9-
(session) => session.SessionNum === 0
8+
state.session?.SessionInfo?.Sessions?.findLast(
9+
(session) => session.SessionTrackRubberState !== 'carry over'
1010
)?.SessionTrackRubberState
1111
);
1212
};

0 commit comments

Comments
 (0)