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/webhooks/github/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
2 changes: 1 addition & 1 deletion components/dashboard/VacationModeCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default function VacationModeCard({ username }: VacationModeCardProps) {
toast.info('That date is already on your list.');
return;
}
const updated = [...dates, newDate].sort();
const updated = [...dates, newDate].sort((a, b) => a - b);
saveDates(updated);
setNewDate('');
};
Expand Down
2 changes: 1 addition & 1 deletion utils/time.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function getSecondsUntilMidnightInTimezone(tz?: string | null): number {
hourCycle: 'h23',
}).formatToParts(now);

const get = (type: string) => parseInt(parts.find((p) => p.type === type)?.value ?? '0', 10);
const get = (type: string) => parseInt(parts.find((p, 10) => p.type === type)?.value ?? '0', 10);

// hour24 can return 24 at midnight in some Intl implementations; normalise with % 24
const hour = get('hour') % 24;
Expand Down
Loading