From c705d97bbaf5d99e3e9a1b003471fbb14c0a8cd8 Mon Sep 17 00:00:00 2001
From: Alexandru Munteanu <alexandru.munt@gmail.com>
Date: Tue, 23 Oct 2018 19:04:37 +0300
Subject: [PATCH] refactor(handleRecommendation): minor tweaks

---
 .../component-manuscript/src/components/ManuscriptLayout.js | 6 +++---
 .../component-manuscript/src/components/ManuscriptPage.js   | 6 ++++--
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/packages/component-manuscript/src/components/ManuscriptLayout.js b/packages/component-manuscript/src/components/ManuscriptLayout.js
index c5ffbe1a4..81d2be237 100644
--- a/packages/component-manuscript/src/components/ManuscriptLayout.js
+++ b/packages/component-manuscript/src/components/ManuscriptLayout.js
@@ -62,7 +62,7 @@ const ManuscriptLayout = ({
   toggleEditorialComments,
   submitRevision,
   inviteReviewer,
-  recommendationHandle,
+  recommendationHandler,
   inviteHandlingEditor,
 }) => (
   <Root pb={30}>
@@ -203,7 +203,7 @@ const ManuscriptLayout = ({
               highlight={reviewerRecommendations.length > 0}
               modalKey="heRecommendation"
               onRecommendationSubmit={
-                recommendationHandle.onEditorialRecommendation
+                recommendationHandler.onEditorialRecommendation
               }
             />
           )}
@@ -215,7 +215,7 @@ const ManuscriptLayout = ({
             highlight={editorialRecommendations.length > 0}
             messagesLabel={messagesLabel}
             mt={2}
-            submitDecision={recommendationHandle.createRecommendation}
+            submitDecision={recommendationHandler.createRecommendation}
           />
         )}
       </Fragment>
diff --git a/packages/component-manuscript/src/components/ManuscriptPage.js b/packages/component-manuscript/src/components/ManuscriptPage.js
index 5314980bc..b5cf99de5 100644
--- a/packages/component-manuscript/src/components/ManuscriptPage.js
+++ b/packages/component-manuscript/src/components/ManuscriptPage.js
@@ -56,9 +56,9 @@ import {
   getInvitationsWithReviewersForFragment,
 } from 'pubsweet-component-faraday-selectors'
 import {
-  RemoteOpener,
   handleError,
   withFetching,
+  RemoteOpener,
 } from 'pubsweet-component-faraday-ui'
 
 import ManuscriptLayout from './ManuscriptLayout'
@@ -66,11 +66,13 @@ import withInviteReviewer from '../inviteReviewer/withInviteReviewer'
 import withSubmitRevision from '../submitRevision/withSubmitRevision'
 import withHandleRecommendation from '../handleRecommendation/withHandleRecommendation'
 import withInviteHandlingEditor from '../inviteHandlingEditor/withInviteHandlingEditor'
+
 import {
-  parseSearchParams,
   redirectToError,
+  parseSearchParams,
   getPublonsReviewers,
 } from './utils'
+
 import {
   canAssignHE,
   selectFetching,
-- 
GitLab