From 88c52e41f048855b9cf74805f04e43557d6f56f3 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 23 Sep 2024 04:18:09 +0200 Subject: [PATCH] Make explicit the undefined check to disable the attachment button --- src/components/compose.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/compose.jsx b/src/components/compose.jsx index eba7740d..e186c185 100644 --- a/src/components/compose.jsx +++ b/src/components/compose.jsx @@ -1412,7 +1412,7 @@ function Compose({ class="toolbar-button gif-picker-button" disabled={ uiState === 'loading' || - !(mediaAttachments.length < maxMediaAttachments) || + (maxMediaAttachments !== undefined && mediaAttachments.length >= maxMediaAttachments) || !!poll } onClick={() => {