Don't display image in extension chip if iconURI undefined

This commit is contained in:
Connor Hudson 2018-06-19 15:58:54 -04:00
parent ea1c0ce4a2
commit f7987fd568

View file

@ -5,10 +5,12 @@ require('./extension-chip.scss');
const ExtensionChip = props => ( const ExtensionChip = props => (
<div className={classNames('extension-chip', {'has-status': props.hasStatus})}> <div className={classNames('extension-chip', {'has-status': props.hasStatus})}>
{props.iconURI &&
<img <img
className="extension-icon" className="extension-icon"
src={props.iconURI} src={props.iconURI}
/> />
}
<div className="extension-content"> <div className="extension-content">
<span>{props.extensionName}</span> <span>{props.extensionName}</span>
{props.hasStatus && ( {props.hasStatus && (