mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-21 16:55:25 +03:00
Make "multiple" condition more readable
This commit is contained in:
parent
1abbe33b76
commit
f82e721c80
1 changed files with 1 additions and 1 deletions
|
@ -1316,7 +1316,7 @@ function Compose({
|
|||
<input
|
||||
type="file"
|
||||
accept={supportedMimeTypes?.join(',')}
|
||||
multiple={!(maxMediaAttachments - mediaAttachments.length < 2)}
|
||||
multiple={(maxMediaAttachments === undefined) || (maxMediaAttachments - mediaAttachments >= 2)}
|
||||
disabled={
|
||||
uiState === 'loading' ||
|
||||
mediaAttachments.length >= maxMediaAttachments ||
|
||||
|
|
Loading…
Reference in a new issue