diff --git a/apps/comments-ui/src/components/AddForm.js b/apps/comments-ui/src/components/AddForm.js index 757bdd49db..b73115dedf 100644 --- a/apps/comments-ui/src/components/AddForm.js +++ b/apps/comments-ui/src/components/AddForm.js @@ -56,7 +56,7 @@ const AddForm = (props) => {
- +

{member.name ? member.name : 'Anonymous'}

Now
diff --git a/apps/comments-ui/src/components/Avatar.js b/apps/comments-ui/src/components/Avatar.js index f7490f7ef8..7ef4eb0c22 100644 --- a/apps/comments-ui/src/components/Avatar.js +++ b/apps/comments-ui/src/components/Avatar.js @@ -25,11 +25,11 @@ class Avatar extends React.Component { return [0,0,10]; } - const saturation = this.props.saturation ? this.props.saturation : 50; + const saturation = isNaN(this.props.saturation) ? 50 : this.props.saturation; const hRange = [0, 360]; - const lRangeTop = Math.round(saturation / (100 / 30)) + 20; - const lRangeBottom = lRangeTop - 10; + const lRangeTop = Math.round(saturation / (100 / 30)) + 30; + const lRangeBottom = lRangeTop - 20; const lRange = [lRangeBottom, lRangeTop]; const hash = this.getHashOfString(commentMember.name); diff --git a/apps/comments-ui/src/components/Comment.js b/apps/comments-ui/src/components/Comment.js index dde044d6cd..86d6ac311d 100644 --- a/apps/comments-ui/src/components/Comment.js +++ b/apps/comments-ui/src/components/Comment.js @@ -62,7 +62,7 @@ const Comment = (props) => { } {isInReplyMode &&
- +
} diff --git a/apps/comments-ui/src/components/CommentsBox.js b/apps/comments-ui/src/components/CommentsBox.js index 4e01c1f221..1d111fee16 100644 --- a/apps/comments-ui/src/components/CommentsBox.js +++ b/apps/comments-ui/src/components/CommentsBox.js @@ -58,7 +58,7 @@ class CommentsBox extends React.Component { {comments}
- { this.context.member ? : } + { this.context.member ? : }
); diff --git a/apps/comments-ui/src/components/ReplyForm.js b/apps/comments-ui/src/components/ReplyForm.js index 7e28a96838..a3b49aed84 100644 --- a/apps/comments-ui/src/components/ReplyForm.js +++ b/apps/comments-ui/src/components/ReplyForm.js @@ -59,7 +59,7 @@ const ReplyForm = (props) => {
- +

{member.name}

Now