From 4c405ae72c655de64387f1b4f762005c07876f0a Mon Sep 17 00:00:00 2001 From: nishupr Date: Sun, 21 Jun 2026 21:33:06 +0530 Subject: [PATCH] fix(landing): restore commented-out auto-reset timeout for copied indicator After a successful clipboard copy, setCopied(true) was called but the corresponding reset timeout was commented out, leaving the 'copied' success indicator stuck visible indefinitely instead of auto-dismissing after 3 seconds. Restores the existing copiedTimeoutRef-based timeout, consistent with the same pattern already used in CompareClient.tsx, customize/page.tsx, PreviewPanel.tsx, code-block.tsx, and ProfileOptimizerModal.tsx. Closes #6248 --- app/components/LandingPageClient.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/LandingPageClient.tsx b/app/components/LandingPageClient.tsx index b296e7297..9723f26fe 100644 --- a/app/components/LandingPageClient.tsx +++ b/app/components/LandingPageClient.tsx @@ -505,8 +505,8 @@ export default function LandingPageClient() { scrollTimeoutRef.current = setTimeout(() => { guideRef.current?.scrollIntoView({ behavior: 'smooth', block: 'start' }); }, 80); - //if (copiedTimeoutRef.current) clearTimeout(copiedTimeoutRef.current); - //copiedTimeoutRef.current = setTimeout(() => setCopied(false), 3000); + if (copiedTimeoutRef.current) clearTimeout(copiedTimeoutRef.current); + copiedTimeoutRef.current = setTimeout(() => setCopied(false), 3000); }; useEffect(() => {