Browse Source

Use lowercase for letter

sbkwgh 8 năm trước cách đây
mục cha
commit
45da69802c
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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 ''
 				}