Просмотр исходного кода

Merge pull request #2245 from weseek/imprv/fix-conflict-in-user-picture

imprv/fix-conflict-in-user-picture
yusuketk 5 лет назад
Родитель
Сommit
fb075dad63
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      src/client/js/components/User/UserPicture.jsx

+ 2 - 1
src/client/js/components/User/UserPicture.jsx

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