diff --git a/packages/component-manuscript/src/components/EditorialComment.js b/packages/component-manuscript/src/components/EditorialComment.js index 5376566d437071a4858642f73f6626b9a7ed69a0..b595b7907f774441dc24d5be38037638697d0d0e 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 0f6dd4afe9e5c74c1da4111c17b6d5296ee7b1c9..591c9f31a4da8bb1989d768ada8c660844e6d027 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} /> ))}