diff --git a/components/AdvancedColorPicker.tsx b/components/AdvancedColorPicker.tsx
index 1ec62dddc..9e692bc52 100644
--- a/components/AdvancedColorPicker.tsx
+++ b/components/AdvancedColorPicker.tsx
@@ -397,7 +397,7 @@ export default function AdvancedColorPicker({
{hexError && (
{hexError}
)}
- {eyedropperSupported === false && (
+ {eyedropperSupported ! && (
Eyedropper not supported in this browser
diff --git a/context/TranslationContext.tsx b/context/TranslationContext.tsx
index d23d9549f..5dfaadf39 100644
--- a/context/TranslationContext.tsx
+++ b/context/TranslationContext.tsx
@@ -59,7 +59,7 @@ const getNestedValue = (
obj: Record | 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) {
diff --git a/utils/dateRange.ts b/utils/dateRange.ts
index a0063e656..72cfac568 100644
--- a/utils/dateRange.ts
+++ b/utils/dateRange.ts
@@ -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();