Commit 43ee9f53 authored by nickstiffler's avatar nickstiffler Committed by Yannis Barlas

fix(editor panel): only editor can see chats

parent a727ba65
......@@ -103,7 +103,7 @@ const Tab = props => {
author={author}
authorChatMessages={authorChatMessages}
editor={editor}
isScienceOfficer={isScienceOfficer}
isEditor={isEditor}
scienceOfficer={scienceOfficer}
sendAuthorChatMessage={sendAuthorChatMessage}
/>
......
......@@ -81,7 +81,7 @@ const PanelInfo = props => {
author,
authorChatMessages,
editor,
isScienceOfficer,
isEditor,
scienceOfficer,
sendAuthorChatMessage,
} = props
......@@ -115,7 +115,7 @@ const PanelInfo = props => {
)}
</Side>
{!isScienceOfficer && (
{isEditor && (
<ChatWithAuthorButton
messages={authorChatMessages}
sendMessage={sendAuthorChatMessage}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment