diff --git a/CHANGELOG.md b/CHANGELOG.md index 7842f0ca..e13be4b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/react/RelatedProducts.js b/react/RelatedProducts.js index 4fb61f8f..052a5204 100644 --- a/react/RelatedProducts.js +++ b/react/RelatedProducts.js @@ -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