diff --git a/src/discussions/comments/comment/CommentHeader.jsx b/src/discussions/comments/comment/CommentHeader.jsx index c95a5b70..e28c79a4 100644 --- a/src/discussions/comments/comment/CommentHeader.jsx +++ b/src/discussions/comments/comment/CommentHeader.jsx @@ -10,7 +10,7 @@ import { Avatar, Icon, } from '@edx/paragon'; -import { AvatarOutlineAndLabelColors, ThreadType } from '../../../data/constants'; +import { AvatarOutlineAndLabelColors, EndorsementStatus, ThreadType } from '../../../data/constants'; import { AuthorLabel } from '../../common'; import ActionsDropdown from '../../common/ActionsDropdown'; import { useAlertBannerVisible } from '../../data/hooks'; @@ -31,7 +31,7 @@ function CommentHeader({ ...comment, postType, }); - const actionIcons = actions.find(({ action }) => action === 'endorsed'); + const actionIcons = actions.find(({ action }) => action === EndorsementStatus.ENDORSED); const handleIcons = (action) => { const actionFunction = actionHandlers[action]; @@ -41,7 +41,6 @@ function CommentHeader({ logError(`Unknown or unimplemented action ${action}`); } }; - return (