diff --git a/client/src/pages/journey/journeyModel.ts b/client/src/pages/journey/journeyModel.ts index 0c1b26b5c..27138f66f 100644 --- a/client/src/pages/journey/journeyModel.ts +++ b/client/src/pages/journey/journeyModel.ts @@ -2,7 +2,7 @@ export function journeyYearLabel(journey: { trip_date_min?: string | null; trip_date_max?: string | null; - created_at?: string | null; + created_at?: string | number | null; }): string { // The dates are calendar dates, so the year is read from the text, not through a Date in some zone. const from = journey.trip_date_min?.slice(0, 4);