diff --git a/client/coral-embed-stream/src/components/Comment.js b/client/coral-embed-stream/src/components/Comment.js index b5eca4ff2..d798b446c 100644 --- a/client/coral-embed-stream/src/components/Comment.js +++ b/client/coral-embed-stream/src/components/Comment.js @@ -26,8 +26,8 @@ import {getActionSummary, iPerformedThisAction} from 'coral-framework/utils'; import {getEditableUntilDate} from './util'; import styles from './Comment.css'; -const isStaff = (tags) => !tags.every((t) => t.name !== 'STAFF'); -const hasTag = (tags, lookupTag) => !!tags.filter((tag) => tag.name === lookupTag).length; +const isStaff = (tags) => !tags.every((t) => t.tag.name !== 'STAFF'); +const hasTag = (tags, lookupTag) => !!tags.filter((t) => t.tag.name === lookupTag).length; const hasComment = (nodes, id) => nodes.some((node) => node.id === id); // resetCursors will return the id cursors of the first and second newest comment in