0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Fixed context menus for comment of deleted member

This commit is contained in:
Simon Backx 2022-07-19 16:28:33 +02:00
parent 0da39ddeeb
commit 0424fcd099

View file

@ -7,7 +7,7 @@ import NotAuthorContextMenu from './NotAuthorContextMenu';
const CommentContextMenu = (props) => {
const {member, admin} = useContext(AppContext);
const comment = props.comment;
const isAuthor = comment.member.uuid === member?.uuid;
const isAuthor = member && comment.member?.uuid === member?.uuid;
const isAdmin = !!admin;
return (