diff --git a/app/api/streak/animated/route.ts b/app/api/streak/animated/route.ts index 6640bc464..81de325e7 100644 --- a/app/api/streak/animated/route.ts +++ b/app/api/streak/animated/route.ts @@ -171,7 +171,7 @@ export async function GET(request: Request) { const rawSpeed = searchParams.get('speed'); const speedNum = rawSpeed ? parseFloat(rawSpeed) : 8; const scanSpeed = - !isNaN(speedNum) && isFinite(speedNum) && speedNum >= 1 && speedNum <= 60 ? speedNum : 8; + !Number.isNaN(speedNum) && isFinite(speedNum) && speedNum >= 1 && speedNum <= 60 ? speedNum : 8; // Pre-calculate frame count const totalFrames = Math.max(1, Math.round(duration * fps)); diff --git a/app/api/webhooks/github/route.ts b/app/api/webhooks/github/route.ts index 865ad6fd1..32983cb72 100644 --- a/app/api/webhooks/github/route.ts +++ b/app/api/webhooks/github/route.ts @@ -135,3 +135,5 @@ export async function POST(req: Request) { return NextResponse.json({ success: true, username, revalidated: true }, { status: 200 }); } + +.catch(err => console.error("Promise.all failed:", err)); \ No newline at end of file diff --git a/components/InteractiveViewer.tsx b/components/InteractiveViewer.tsx index ba6c65a49..590f9c045 100644 --- a/components/InteractiveViewer.tsx +++ b/components/InteractiveViewer.tsx @@ -60,7 +60,7 @@ export const formatDate = (dateStr: string): string => { const year = parseInt(parts[0], 10); const month = parseInt(parts[1], 10); const day = parseInt(parts[2], 10); - if (isNaN(year) || isNaN(month) || isNaN(day)) return dateStr; + if (Number.isNaN(year) || isNaN(month) || isNaN(day)) return dateStr; try { const date = new Date(`${dateStr}T00:00:00Z`); if (isNaN(date.getTime())) return dateStr;