Better var name
This commit is contained in:
parent
a838e30f4a
commit
fcfe9738ef
1 changed files with 3 additions and 3 deletions
|
@ -701,10 +701,10 @@ function Compose({
|
||||||
|
|
||||||
if (mediaAttachments.length > 0) {
|
if (mediaAttachments.length > 0) {
|
||||||
// If there are media attachments, check if they have no descriptions
|
// If there are media attachments, check if they have no descriptions
|
||||||
const noDescription = mediaAttachments.some(
|
const hasNoDescriptions = mediaAttachments.some(
|
||||||
(media) => !media.description?.trim(),
|
(media) => !media.description?.trim?.(),
|
||||||
);
|
);
|
||||||
if (noDescription) {
|
if (hasNoDescriptions) {
|
||||||
const yes = confirm('Some media have no descriptions. Continue?');
|
const yes = confirm('Some media have no descriptions. Continue?');
|
||||||
if (!yes) return;
|
if (!yes) return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue