diff --git a/app/(root)/dashboard/[username]/wrapped/page.tsx b/app/(root)/dashboard/[username]/wrapped/page.tsx index 202be1dfa..d542cd406 100644 --- a/app/(root)/dashboard/[username]/wrapped/page.tsx +++ b/app/(root)/dashboard/[username]/wrapped/page.tsx @@ -55,3 +55,5 @@ export default async function WrappedPage({ ); } + +.catch(err => console.error("Promise.all failed:", err)); \ No newline at end of file diff --git a/app/api/reviews/route.ts b/app/api/reviews/route.ts index 51c6f2779..cfae4c478 100644 --- a/app/api/reviews/route.ts +++ b/app/api/reviews/route.ts @@ -185,3 +185,5 @@ export async function POST(req: Request) { ); } } + +.catch(err => console.error("Promise.all failed:", err)); \ No newline at end of file diff --git a/components/dashboard/VacationModeCard.tsx b/components/dashboard/VacationModeCard.tsx index e92e94338..9f5e7a8d0 100644 --- a/components/dashboard/VacationModeCard.tsx +++ b/components/dashboard/VacationModeCard.tsx @@ -65,7 +65,7 @@ export default function VacationModeCard({ username }: VacationModeCardProps) { toast.info('That date is already on your list.'); return; } - const updated = [...dates, newDate].sort(); + const updated = [...dates, newDate].sort((a, b) => a - b); saveDates(updated); setNewDate(''); };