Make explicit the undefined check to disable the attachment button

This commit is contained in:
Stefano Pigozzi 2024-09-23 04:18:09 +02:00
parent 906d6017e4
commit 88c52e41f0
No known key found for this signature in database
GPG key ID: 5ADA3868646C3FC0

View file

@ -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={() => {