diff --git a/webapp/components/post_view/components/post.jsx b/webapp/components/post_view/components/post.jsx
index 7eeffb0391..6a5994469c 100644
--- a/webapp/components/post_view/components/post.jsx
+++ b/webapp/components/post_view/components/post.jsx
@@ -199,6 +199,16 @@ export default class Post extends React.Component {
/>
);
+ if (this.props.compactDisplay) {
+ profilePic = (
+
+ );
+ }
+
if (PostUtils.isSystemMessage(post)) {
profilePic = (
{profilePic});
+ const profilePicContainer = ({profilePic}
);
if (this.props.compactDisplay) {
compactClass = 'post--compact';
- profilePicContainer = '';
}
let dropdownOpenedClass = '';
diff --git a/webapp/components/select_team/select_team.jsx b/webapp/components/select_team/select_team.jsx
index e6156ecb98..5f8d9f4639 100644
--- a/webapp/components/select_team/select_team.jsx
+++ b/webapp/components/select_team/select_team.jsx
@@ -193,7 +193,7 @@ export default class SelectTeam extends React.Component {
let adminConsoleLink;
if (isSystemAdmin) {
adminConsoleLink = (
-