Skip to content

Commit

Permalink
Merge 091930c into c5321b4
Browse files Browse the repository at this point in the history
  • Loading branch information
jgfidelis committed May 26, 2019
2 parents c5321b4 + 091930c commit 971599e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Fixed
- Correctly parse old recommendation prop on RelatedProduct shelf.

## [1.16.2] - 2019-05-26
### Fixed
Expand Down
2 changes: 1 addition & 1 deletion react/RelatedProducts.js
Original file line number Diff line number Diff line change
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 971599e

Please sign in to comment.