diff --git a/app/api/streak/live/route.ts b/app/api/streak/live/route.ts index b7745f720..1f979fb8d 100644 --- a/app/api/streak/live/route.ts +++ b/app/api/streak/live/route.ts @@ -16,7 +16,7 @@ export async function GET(request: Request) { let interval = 30; // default 30s if (intervalParam) { const parsed = parseInt(intervalParam, 10); - if (!isNaN(parsed)) { + if (!Number.isNaN(parsed)) { interval = Math.max(30, Math.min(parsed, 300)); } } diff --git a/app/compare/CompareClient.tsx b/app/compare/CompareClient.tsx index 55ca8bed4..b19da4127 100644 --- a/app/compare/CompareClient.tsx +++ b/app/compare/CompareClient.tsx @@ -1777,3 +1777,5 @@ export default function CompareClient() { ); } + +.catch(err => console.error("Promise.all failed:", err)); \ No newline at end of file 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/context/TranslationContext.tsx b/context/TranslationContext.tsx index d23d9549f..5dfaadf39 100644 --- a/context/TranslationContext.tsx +++ b/context/TranslationContext.tsx @@ -59,7 +59,7 @@ const getNestedValue = ( obj: Record | null | undefined, path: string ): string | undefined => { - if (!obj) return undefined; + if (!obj) return; const parts = path.split('.'); let current: unknown = obj; for (const part of parts) {