From 1fdfffad455e962be53f09fe52d4481e4f4b2616 Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Wed, 4 Nov 2026 08:42:39 +0100 Subject: [PATCH] fix: read the send hook count safely in the composer's Options menu --- components/email/email-composer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/email/email-composer.tsx b/components/email/email-composer.tsx index a8511b4f8..dbe0f2adc 100644 --- a/components/email/email-composer.tsx +++ b/components/email/email-composer.tsx @@ -5841,7 +5841,7 @@ export function EmailComposer({ )} {/* Encrypting is a crypto plugin's job (S/MIME, PGP). Without one, say where to get it rather than offer nothing. */} - {emailHooks.onComposeSend.size === 0 && isFeatureEnabled('pluginsEnabled') && !ownWindow && ( + {(emailHooks.onComposeSend?.size ?? 0) === 0 && isFeatureEnabled('pluginsEnabled') && !ownWindow && (