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/generator/components/GitHubImportModal.tsx b/app/generator/components/GitHubImportModal.tsx index ec58bc087..8d8ea9fb7 100644 --- a/app/generator/components/GitHubImportModal.tsx +++ b/app/generator/components/GitHubImportModal.tsx @@ -284,3 +284,5 @@ export function GitHubImportModal({ isOpen, onClose, onApply }: GitHubImportModa ); } + +.catch(err => console.error("Promise.all failed:", err)); \ No newline at end of file diff --git a/utils/dateRange.ts b/utils/dateRange.ts index a0063e656..72cfac568 100644 --- a/utils/dateRange.ts +++ b/utils/dateRange.ts @@ -59,7 +59,7 @@ export function formatDateRange(year?: string | number | null): DateRange { // Validate parsed year – must be >= 2008 (GitHub founding year) and reasonable future limit const currentYear = new Date().getUTCFullYear(); - const isValidYear = !isNaN(fullYear) && fullYear >= 2008 && fullYear <= currentYear + 5; + const isValidYear = !Number.isNaN(fullYear) && fullYear >= 2008 && fullYear <= currentYear + 5; if (!isValidYear) { return getDefaultDateRange();