diff --git a/CHANGELOG.md b/CHANGELOG.md index 3209559..e428bae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Fixed +- The og:title was not respecting the removeStoreNameTitle tag from store settings. + ### Changed - Update GitHub actions/cache to v4 diff --git a/react/ProductOpenGraph.tsx b/react/ProductOpenGraph.tsx index 61a37c0..b407f76 100644 --- a/react/ProductOpenGraph.tsx +++ b/react/ProductOpenGraph.tsx @@ -47,7 +47,7 @@ function ProductOpenGraph() { try { const settings = getSettings('vtex.store') - if (settings) { + if (!settings.removeStoreNameTitle) { const { storeName, titleTag: storeTitleTag } = settings const suffix = (storeTitleTag || storeName) && ` - ${storeTitleTag || storeName}`