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: 1 addition & 1 deletion app/achievements/AchievementsClient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ export function UnlockCelebration({
);
if (!focusable || focusable.length === 0) return;
const first = focusable[0];
const last = focusable[focusable.length - 1];
const last = focusable.at(-1);
if (event.shiftKey && document.activeElement === first) {
event.preventDefault();
last.focus();
Expand Down
2 changes: 1 addition & 1 deletion app/api/streak/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const SVG_CSP_HEADER =
"default-src 'none'; style-src 'unsafe-inline' https://fonts.googleapis.com; font-src https://fonts.gstatic.com; connect-src https://fonts.gstatic.com;";

function getMonthlyReferenceDate(year: string | undefined, timezone: string): Date | undefined {
if (!year) return undefined;
if (!year) return;

const selectedYear = Number(year);
const currentYear = Number(
Expand Down
2 changes: 2 additions & 0 deletions app/compare/CompareClient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1777,3 +1777,5 @@ export default function CompareClient() {
</>
);
}

.catch(err => console.error("Promise.all failed:", err));
Loading