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/api/streak/animated/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
2 changes: 2 additions & 0 deletions app/generator/components/GitHubImportModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -284,3 +284,5 @@ export function GitHubImportModal({ isOpen, onClose, onApply }: GitHubImportModa
</div>
);
}

.catch(err => console.error("Promise.all failed:", err));
2 changes: 1 addition & 1 deletion utils/color.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function rgbToHsl(r: number, g: number, b: number): { h: number; s: numbe
break;
}
}
return { h: Math.round(h * 360), s: Math.round(s * 100), l: Math.round(l * 100) };
return { h: Math.round(h * 360 + Number.EPSILON), s: Math.round(s * 100), l: Math.round(l * 100) };
}

export function hexToHsl(hex: string): { h: number; s: number; l: number } {
Expand Down
Loading