diff options
Diffstat (limited to 'src/frontend/app/contexts/JourneyContext.tsx')
| -rw-r--r-- | src/frontend/app/contexts/JourneyContext.tsx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/frontend/app/contexts/JourneyContext.tsx b/src/frontend/app/contexts/JourneyContext.tsx index f513aa8..9c3c3ac 100644 --- a/src/frontend/app/contexts/JourneyContext.tsx +++ b/src/frontend/app/contexts/JourneyContext.tsx @@ -25,9 +25,7 @@ export interface ActiveJourney { interface JourneyContextValue { activeJourney: ActiveJourney | null; - startJourney: ( - journey: Omit<ActiveJourney, "hasNotified"> - ) => void; + startJourney: (journey: Omit<ActiveJourney, "hasNotified">) => void; stopJourney: () => void; markNotified: () => void; } @@ -61,9 +59,7 @@ export function JourneyProvider({ children }: { children: ReactNode }) { }, []); const markNotified = useCallback(() => { - setActiveJourney((prev) => - prev ? { ...prev, hasNotified: true } : null - ); + setActiveJourney((prev) => (prev ? { ...prev, hasNotified: true } : null)); }, []); return ( |
