diff --git a/components/email/email-viewer.tsx b/components/email/email-viewer.tsx index 6e9001a3..c296c0d0 100644 --- a/components/email/email-viewer.tsx +++ b/components/email/email-viewer.tsx @@ -434,7 +434,7 @@ function InfoTooltip({ text }: { text: string }) { className="text-muted-foreground/50 hover:text-muted-foreground transition-colors" onMouseEnter={show} onMouseLeave={hide} - onClick={(e) => { e.stopPropagation(); open ? hide() : show(); }} + onClick={(e) => { e.stopPropagation(); if (open) { hide(); } else { show(); } }} aria-label="More info" >