From cd0551534d8aaf3d3d5cc1727dfcc01d0637c6b2 Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Sun, 12 Apr 2026 18:02:56 +0200 Subject: Run formatter, split code in backend --- src/frontend/app/contexts/JourneyContext.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/frontend/app/contexts/JourneyContext.tsx') 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 - ) => void; + startJourney: (journey: Omit) => 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 ( -- cgit v1.3