Explorar el Código

refactor(Station): Use user display name where possible in user list

Owen Diffey hace 3 años
padre
commit
e448ca5c85
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      frontend/src/pages/Station/Sidebar/Users.vue

+ 2 - 2
frontend/src/pages/Station/Sidebar/Users.vue

@@ -44,10 +44,10 @@
 					>
 						<profile-picture
 							:avatar="user.avatar"
-							:name="user.name ? user.name : user.username"
+							:name="user.name || user.username"
 						/>
 
-						{{ user.username }}
+						{{ user.name || user.username }}
 					</router-link>
 				</li>
 			</ul>