diff --git a/frontend/src/pages/TripChecklist.tsx b/frontend/src/pages/TripChecklist.tsx index d761318..fe05d8f 100644 --- a/frontend/src/pages/TripChecklist.tsx +++ b/frontend/src/pages/TripChecklist.tsx @@ -108,6 +108,13 @@ export default function TripChecklist({ trips }: { trips: any[] }) { a.tag.name.localeCompare(b.tag.name) ); + function formatAsHeading(str: string) { + if (!str) return ""; + // Replace hyphens with spaces and capitalize first letter + const withSpaces = str.replace(/-/g, " "); + return withSpaces.charAt(0).toUpperCase() + withSpaces.slice(1); + } + return (