Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/api/reviews/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,3 +185,5 @@ export async function POST(req: Request) {
);
}
}

.catch(err => console.error("Promise.all failed:", err));
2 changes: 1 addition & 1 deletion app/api/streak/live/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
Expand Down
2 changes: 1 addition & 1 deletion context/TranslationContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const getNestedValue = (
obj: Record<string, unknown> | 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) {
Expand Down
Loading