Skip to content

Commit

Permalink
release 3.135.0-beta.2
Browse files Browse the repository at this point in the history
  • Loading branch information
hiagolcm committed Nov 13, 2024
1 parent 50ab0af commit 52ec59c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "search-result",
"vendor": "vtex",
"version": "3.136.0-beta.0",
"version": "3.135.0-beta.2",
"title": "VTEX Search Result",
"description": "A search result wrapper component",
"mustUpdateAt": "2019-04-25",
Expand Down
9 changes: 8 additions & 1 deletion react/SearchTitle.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ import React from 'react'
import styles from './searchResult.css'
import { useSearchTitle } from './hooks/useSearchTitle'

const SHIPPING_MESSAGES = [
'delivery',
'pickup-all',
'pickup-in-point',
'pickup-nearby',
]

const SearchTitle = props => {
const { breadcrumb: breadcrumbProp, wrapperClass = styles.galleryTitle } =
props
Expand All @@ -13,7 +20,7 @@ const SearchTitle = props => {
fallbackToLastName: true,
})

if (!title) {
if (!title || SHIPPING_MESSAGES.includes(title)) {
return null
}

Expand Down

0 comments on commit 52ec59c

Please sign in to comment.