Ver Fonte

Use lowercase for letter

sbkwgh há 8 anos atrás
pai
commit
45da69802c
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      src/components/AvatarIcon.vue

+ 2 - 2
src/components/AvatarIcon.vue

@@ -8,7 +8,7 @@
 						:style='{ "background-color": user.color }'
 						@click='goToUser'
 					>
-						{{user.username[0]}}
+						{{userLetter}}
 					</div>
 					<div class='avatar_icon__header_info'>
 						<span class='avatar_icon__username' @click='goToUser'>{{ajaxUser.username}}</span>
@@ -49,7 +49,7 @@
 		computed: {
 			userLetter () {
 				if(this.user) {
-					return this.user.username[0]
+					return this.user.username[0].toLowerCase()
 				} else {
 					return ''
 				}