Browse Source

fixed avatar when not logged in

Skylsmoi 6 years ago
parent
commit
5364329094
1 changed files with 1 additions and 1 deletions
  1. 1 1
      frontend/src/reducer/user.js

+ 1 - 1
frontend/src/reducer/user.js View File

@@ -34,7 +34,7 @@ export default function user (state = defaultUser, action) {
34 34
         ...action.user,
35 35
         avatar_url: action.user.avatar_url
36 36
           ? action.user.avatar_url
37
-          : generateAvatarFromPublicName(action.user.public_name)
37
+          : action.user.public_name ? generateAvatarFromPublicName(action.user.public_name) : ''
38 38
       }
39 39
 
40 40
     case `${SET}/${USER_DISCONNECTED}`: