From da0cebbda72b2e6b2e8335987c8dfc8179193ae7 Mon Sep 17 00:00:00 2001 From: gaba Date: Mon, 8 May 2017 17:06:49 -0700 Subject: [PATCH] Fix the plugin TagLabel to show the staff tag. --- client/coral-embed-stream/src/components/Comment.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/coral-embed-stream/src/components/Comment.js b/client/coral-embed-stream/src/components/Comment.js index 4349fe38d..b58bf2957 100644 --- a/client/coral-embed-stream/src/components/Comment.js +++ b/client/coral-embed-stream/src/components/Comment.js @@ -23,7 +23,7 @@ import {getActionSummary, iPerformedThisAction} from 'coral-framework/utils'; import styles from './Comment.css'; -const isStaff = tags => !tags.every(t => t.name !== 'STAFF'); +const isStaff = tags => !tags.every(t => t.id !== 'STAFF'); // hold actions links (e.g. Reply) along the comment footer const ActionButton = ({children}) => { @@ -72,7 +72,7 @@ class Comment extends React.Component { id: PropTypes.string.isRequired, tags: PropTypes.arrayOf( PropTypes.shape({ - name: PropTypes.string + id: PropTypes.string }) ), replies: PropTypes.arrayOf(