Skip to content

Commit

Permalink
Merge f48c2e2 into c5321b4
Browse files Browse the repository at this point in the history
  • Loading branch information
jgfidelis committed May 26, 2019
2 parents c5321b4 + f48c2e2 commit 21504c9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [1.16.3] - 2019-05-26
### Fixed
- Correctly parse old recommendation prop on RelatedProduct shelf.

## [1.16.2] - 2019-05-26
### Fixed
- Prevent RelatedProducts from crashing if there's no data
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
@@ -1,7 +1,7 @@
{
"name": "shelf",
"vendor": "vtex",
"version": "1.16.2",
"version": "1.16.3",
"title": "VTEX Shelf",
"description": "A shelf component",
"mustUpdateAt": "2019-04-03",
Expand Down
2 changes: 1 addition & 1 deletion react/RelatedProducts.js
Expand Up @@ -11,7 +11,7 @@ import shelf from './components/shelf.css'

// Previous values were in a wrong format with the message string in the enum value.
const fixRecommendation = recommendation => {
if (recommendation.includes('admin/editor.relatedProducts.')) {
if (recommendation.includes('editor.relatedProducts.')) {
return last(recommendation.split('.'))
}
return recommendation
Expand Down

0 comments on commit 21504c9

Please sign in to comment.