Skip to content

Commit

Permalink
chore(useDrag): change verb
Browse files Browse the repository at this point in the history
  • Loading branch information
kishore03109 committed Sep 20, 2023
1 parent 9c9b398 commit ae0d2a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/useDrag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit ae0d2a8

Please sign in to comment.