From ae0d2a82bac8433be1a4795c4dfd989ec505fa11 Mon Sep 17 00:00:00 2001 From: Kishore <42832651+kishore03109@users.noreply.github.com> Date: Wed, 20 Sep 2023 18:13:00 +0800 Subject: [PATCH] chore(useDrag): change verb --- src/hooks/useDrag.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/useDrag.tsx b/src/hooks/useDrag.tsx index e7f0fd5091..9194a971d7 100644 --- a/src/hooks/useDrag.tsx +++ b/src/hooks/useDrag.tsx @@ -280,12 +280,12 @@ const updateHomepageState = ( ) } case "announcement": { - const announcementKeyExist = !_.isEmpty( + const doesAnnouncementKeyExist = !_.isEmpty( frontMatter.sections.find((section) => EditorHomepageFrontmatterSection.isAnnouncements(section) ) ) - if (!announcementKeyExist) { + if (!doesAnnouncementKeyExist) { // should not reach here, but defensively return the original state return homepageState }