aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app/hooks/usePlanner.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/app/hooks/usePlanner.ts')
-rw-r--r--src/frontend/app/hooks/usePlanner.ts4
1 files changed, 2 insertions, 2 deletions
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