Skip to content

Commit

Permalink
Handle maxMediaAttachments being undefined while creating the gif p…
Browse files Browse the repository at this point in the history
…icker button
  • Loading branch information
Steffo99 committed Sep 5, 2024
1 parent 143b389 commit 61946a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/compose.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1410,7 +1410,7 @@ function Compose({
class="toolbar-button gif-picker-button"
disabled={
uiState === 'loading' ||
mediaAttachments.length >= maxMediaAttachments ||
(maxMediaAttachments ? mediaAttachments.length >= maxMediaAttachments : true) ||
!!poll
}
onClick={() => {
Expand Down

0 comments on commit 61946a8

Please sign in to comment.