fixed job cli, reverted comment box pending beheviour

This commit is contained in:
Wyatt Johnson
2017-11-29 15:57:28 -07:00
parent 1c01a3320f
commit 1b9c2404db
3 changed files with 60 additions and 25 deletions
@@ -224,14 +224,13 @@ class Stream extends React.Component {
const open = !asset.isClosed;
const banned = user && user.status === 'BANNED';
const pending = user && user.status === 'PENDING';
const temporarilySuspended =
user &&
user.suspension.until &&
new Date(user.suspension.until) > new Date();
const showCommentBox = loggedIn && ((!banned && !pending & !temporarilySuspended && !highlightedComment) || keepCommentBox);
const showCommentBox = loggedIn && ((!banned && !temporarilySuspended && !highlightedComment) || keepCommentBox);
const slotProps = {data};
const slotQueryData = {root, asset};