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 components/AdvancedColorPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ export default function AdvancedColorPicker({
{hexError && (
<p className="-mt-1.5 text-[10px] text-red-400 dark:text-red-500">{hexError}</p>
)}
{eyedropperSupported === false && (
{eyedropperSupported ! && (
<p className="-mt-1.5 text-[10px] text-amber-500 dark:text-amber-400">
Eyedropper not supported in this browser
</p>
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
2 changes: 1 addition & 1 deletion utils/dateRange.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function formatDateRange(year?: string | number | null): DateRange {

// Validate parsed year – must be >= 2008 (GitHub founding year) and reasonable future limit
const currentYear = new Date().getUTCFullYear();
const isValidYear = !isNaN(fullYear) && fullYear >= 2008 && fullYear <= currentYear + 5;
const isValidYear = !Number.isNaN(fullYear) && fullYear >= 2008 && fullYear <= currentYear + 5;

if (!isValidYear) {
return getDefaultDateRange();
Expand Down
Loading