diff --git a/drb-frontend/app/trips/[id]/page.tsx b/drb-frontend/app/trips/[id]/page.tsx index 0458436..b291e4a 100644 --- a/drb-frontend/app/trips/[id]/page.tsx +++ b/drb-frontend/app/trips/[id]/page.tsx @@ -11,8 +11,7 @@ import type { TripEvent, TripRecord, PlaceResult } from "@/lib/types"; // --------------------------------------------------------------------------- function uid(): string { - if (typeof crypto !== "undefined" && crypto.randomUUID) return uid(); - return Math.random().toString(36).slice(2) + Date.now().toString(36); + try { return crypto.randomUUID(); } catch { return Math.random().toString(36).slice(2) + Date.now().toString(36); } } function toMin(t: string): number {