From 5c26b7e8005b540eb7a6bccc6219b9dc786600fe Mon Sep 17 00:00:00 2001 From: Rainer Simon Date: Mon, 14 Sep 2020 12:38:43 +0200 Subject: [PATCH] Bugfix --- src/editor/widgets/comment/CommentWidget.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/widgets/comment/CommentWidget.jsx b/src/editor/widgets/comment/CommentWidget.jsx index 067ecd2..0324b04 100644 --- a/src/editor/widgets/comment/CommentWidget.jsx +++ b/src/editor/widgets/comment/CommentWidget.jsx @@ -66,7 +66,7 @@ const CommentWidget = props => { const creator = body.creator?.id; // The current user - const me = Environment.user; + const me = Environment.user?.id; return me !== creator; }