removed "undefined" color

This commit is contained in:
or-else
2021-05-02 16:48:53 -07:00
parent 430b2db9aa
commit 1d6b970d7b
5 changed files with 6 additions and 5 deletions
+2 -1
View File
@@ -83,7 +83,8 @@ class Contact extends React.Component {
this.props.comment;
const icon = deliveryMarker(this.props.received);
const marker = icon ? <i className={'material-icons small space-right ' + icon.color}>{icon.name}</i> : null;
const marker = icon ? <i className={'material-icons small space-right' +
(icon.color ? ' ' + icon.color : '')}>{icon.name}</i> : null;
return (
<li className={!this.props.showCheckmark && this.props.selected ? 'selected' : null} onClick={this.handleClick}>