|
|
@@ -63,11 +63,18 @@ export default class UserPicture extends React.Component {
|
|
|
RootElm = this.withTooltip(RootElm);
|
|
|
}
|
|
|
|
|
|
+ let userPictureSrc;
|
|
|
+ if (user.imageUrlCached != null) {
|
|
|
+ userPictureSrc = user.imageUrlCached;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ userPictureSrc = DEFAULT_IMAGE;
|
|
|
+ }
|
|
|
|
|
|
return (
|
|
|
<RootElm>
|
|
|
<img
|
|
|
- src={this.getUserPicture(user)}
|
|
|
+ src={userPictureSrc}
|
|
|
alt={user.username}
|
|
|
className={this.getClassName()}
|
|
|
/>
|