From 0424fcd0993d5289bbac7036ba96bd9083f00cf5 Mon Sep 17 00:00:00 2001 From: Simon Backx Date: Tue, 19 Jul 2022 16:28:33 +0200 Subject: [PATCH] Fixed context menus for comment of deleted member --- apps/comments-ui/src/components/modals/CommentContextMenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/comments-ui/src/components/modals/CommentContextMenu.js b/apps/comments-ui/src/components/modals/CommentContextMenu.js index e08a4417c8..9a2c86d0ce 100644 --- a/apps/comments-ui/src/components/modals/CommentContextMenu.js +++ b/apps/comments-ui/src/components/modals/CommentContextMenu.js @@ -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 (