From 5fa9c964a76edba71ce989f5fe6d52c3e17891f7 Mon Sep 17 00:00:00 2001
From: Alexandru Munteanu <alexandru.munt@gmail.com>
Date: Wed, 30 May 2018 10:05:47 +0300
Subject: [PATCH] fix(editorial-comments): fix qa bugs

---
 .../component-manuscript/src/components/EditorialComment.js   | 4 ++--
 .../component-manuscript/src/components/EditorialComments.js  | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/packages/component-manuscript/src/components/EditorialComment.js b/packages/component-manuscript/src/components/EditorialComment.js
index 5376566d4..b595b7907 100644
--- a/packages/component-manuscript/src/components/EditorialComment.js
+++ b/packages/component-manuscript/src/components/EditorialComment.js
@@ -50,8 +50,8 @@ const EditorialComment = ({
 
 export default compose(
   setDisplayName('EditorialComment'),
-  withProps(({ recommendationType, comments = [] }) => ({
-    reason: parseRecommendationType(recommendationType),
+  withProps(({ recommendation, comments = [] }) => ({
+    reason: parseRecommendationType(recommendation),
     comments: parseRecommendationComments(comments),
   })),
 )(EditorialComment)
diff --git a/packages/component-manuscript/src/components/EditorialComments.js b/packages/component-manuscript/src/components/EditorialComments.js
index 0f6dd4afe..591c9f31a 100644
--- a/packages/component-manuscript/src/components/EditorialComments.js
+++ b/packages/component-manuscript/src/components/EditorialComments.js
@@ -9,7 +9,7 @@ import { EditorialComment } from './'
 
 const EditorialComments = ({ recommendations, handlingEditor }) => (
   <Root>
-    <Expandable label="Editorial comments">
+    <Expandable label="Editorial comments" startExpanded>
       {recommendations.map(r => (
         <EditorialComment key={r.id} {...r} handlingEditor={handlingEditor} />
       ))}
-- 
GitLab