diff --git a/src/components/comment/Comments.tsx b/src/components/comment/Comments.tsx index e7b309cda..a1bdbb6c0 100644 --- a/src/components/comment/Comments.tsx +++ b/src/components/comment/Comments.tsx @@ -241,36 +241,40 @@ const Comments = async ({ )} - - - - - - {(session.user.id.toString() === - (c as ExtendedComment).userId.toString() || - session.user.role === ROLES.ADMIN) && ( - - - - )} - {session.user.role === ROLES.ADMIN && ( - - - - )} - {session.user.role === ROLES.ADMIN && ( - - - - )} - - + {(session.user.id.toString() === + (c as ExtendedComment).userId.toString() || + session.user.role === ROLES.ADMIN) && ( + + + + + + {(session.user.id.toString() === + (c as ExtendedComment).userId.toString() || + session.user.role === ROLES.ADMIN) && ( + + + + )} + {session.user.role === ROLES.ADMIN && ( + + + + )} + {session.user.role === ROLES.ADMIN && ( + + + + )} + + + )}