From 9d38db605e25febc81f8832f4756cbb6cfc010b8 Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Fri, 12 Dec 2025 16:52:05 +0100 Subject: Fix formatting and errors --- src/frontend/app/hooks/usePlanner.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/frontend/app/hooks/usePlanner.ts') diff --git a/src/frontend/app/hooks/usePlanner.ts b/src/frontend/app/hooks/usePlanner.ts index 8a2959a..6123f8a 100644 --- a/src/frontend/app/hooks/usePlanner.ts +++ b/src/frontend/app/hooks/usePlanner.ts @@ -86,7 +86,7 @@ export function usePlanner() { plan: result, searchTime: time ?? new Date(), arriveBy: arriveByParam, - selectedItineraryIndex: null, + selectedItineraryIndex: undefined, }; localStorage.setItem(STORAGE_KEY, JSON.stringify(toStore)); } catch (err) { @@ -131,7 +131,7 @@ export function usePlanner() { if (stored) { try { const data: StoredRoute = JSON.parse(stored); - data.selectedItineraryIndex = null; + data.selectedItineraryIndex = undefined; localStorage.setItem(STORAGE_KEY, JSON.stringify(data)); } catch (e) { // Ignore -- cgit v1.3