mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-13 09:28:50 +01: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
|
<input
|
||||||
type="file"
|
type="file"
|
||||||
accept={supportedMimeTypes?.join(',')}
|
accept={supportedMimeTypes?.join(',')}
|
||||||
multiple={!(maxMediaAttachments - mediaAttachments.length < 2)}
|
multiple={(maxMediaAttachments === undefined) || (maxMediaAttachments - mediaAttachments >= 2)}
|
||||||
disabled={
|
disabled={
|
||||||
uiState === 'loading' ||
|
uiState === 'loading' ||
|
||||||
mediaAttachments.length >= maxMediaAttachments ||
|
mediaAttachments.length >= maxMediaAttachments ||
|
||||||
|
|
Loading…
Reference in a new issue