fix build

This commit is contained in:
Logan
2026-06-21 14:15:09 -04:00
parent 39c002d090
commit af4079d648
+1 -2
View File
@@ -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 {