From f92bc9e5498e24b414966c9979447be6a4514c21 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 11 May 2026 00:17:55 +0000 Subject: [PATCH] Fix no-non-null-assertion lint error in PrivacySection Replace non-null assertion with optional chaining on dataRequestCooldownUntil to satisfy oxlint no-non-null-assertion rule. https://claude.ai/code/session_017Hvmof82Xr3UwKFc3pnC4X --- app/components/user/settings/PrivacySection.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/user/settings/PrivacySection.tsx b/app/components/user/settings/PrivacySection.tsx index 8cbdc22..38fd638 100644 --- a/app/components/user/settings/PrivacySection.tsx +++ b/app/components/user/settings/PrivacySection.tsx @@ -35,7 +35,7 @@ export function PrivacySection({ if (!open) setConfirmed(false); }; - const inCooldown = dataRequestCooldownUntil != null && dataRequestCooldownUntil > new Date(); + const inCooldown = dataRequestCooldownUntil !== null && dataRequestCooldownUntil > new Date(); return (
@@ -69,7 +69,7 @@ export function PrivacySection({ {inCooldown && !dataRequestSuccess && (

Your data request is being processed. You can submit another request - after {dataRequestCooldownUntil!.toLocaleDateString()}. + after {dataRequestCooldownUntil?.toLocaleDateString()}.

)}