From fcfe9738ef911872d0ddb4a1422ebaa630e4a14b Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Wed, 15 Mar 2023 00:55:32 +0800 Subject: [PATCH] Better var name --- src/components/compose.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/compose.jsx b/src/components/compose.jsx index a090873d..76f595c6 100644 --- a/src/components/compose.jsx +++ b/src/components/compose.jsx @@ -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; }