mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-14 04:08:32 +03:00
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 there are media attachments, check if they have no descriptions
|
||||
const noDescription = mediaAttachments.some(
|
||||
(media) => !media.description?.trim(),
|
||||
const hasNoDescriptions = mediaAttachments.some(
|
||||
(media) => !media.description?.trim?.(),
|
||||
);
|
||||
if (noDescription) {
|
||||
if (hasNoDescriptions) {
|
||||
const yes = confirm('Some media have no descriptions. Continue?');
|
||||
if (!yes) return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue