Skip to content

Commit

Permalink
fix(edithomepage): update condition for button
Browse files Browse the repository at this point in the history
  • Loading branch information
seaerchin committed Sep 6, 2023
1 parent 115c37a commit 0549a1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/layouts/EditHomepage/EditHomepage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1097,8 +1097,9 @@ const EditHomepage = ({ match }) => {
if we put the declaration out of the components.
This is because we have a blocking conditional `isLoaded` that gets set only after data is fetched.
*/}
{getErrorsFromHomepageState(homepageState).some((message) =>
message.includes("longer")
{getErrorsFromHomepageState(homepageState).some(
(message) =>
message.includes("longer") || message.includes("specify")
) && (
<Text
mr="0.25rem"
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/EditHomepage/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const getErrorsFromHomepageState = ({
const heroFieldErrors = _(heroSection)
.omit(["key_highlights", "dropdown"])
.mapValues((val, key) => validateHeroSectionFields(key, val))
.values()
.filter()
.value()

// NOTE: Section is an object keyed by the section type
Expand Down

0 comments on commit 0549a1f

Please sign in to comment.