From af4079d6482e910231670fbd9784cb8140383d68 Mon Sep 17 00:00:00 2001 From: Logan Date: Sun, 21 Jun 2026 14:15:09 -0400 Subject: [PATCH] fix build --- drb-frontend/app/trips/[id]/page.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 {