File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/renderer/components/ft-profile-selector Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -28,11 +28,12 @@ export default Vue.extend({
28
28
return this . $store . getters . getDefaultProfile
29
29
} ,
30
30
activeProfileInitial : function ( ) {
31
- return this . activeProfile ?. name ?. length > 0 ? this . activeProfile . name [ 0 ] . toUpperCase ( ) : ''
31
+ // use Array.from, so that emojis don't get split up into individual character codes
32
+ return this . activeProfile ?. name ?. length > 0 ? Array . from ( this . activeProfile . name ) [ 0 ] . toUpperCase ( ) : ''
32
33
} ,
33
34
profileInitials : function ( ) {
34
35
return this . profileList . map ( ( profile ) => {
35
- return profile ?. name ?. length > 0 ? profile . name [ 0 ] . toUpperCase ( ) : ''
36
+ return profile ?. name ?. length > 0 ? Array . from ( profile . name ) [ 0 ] . toUpperCase ( ) : ''
36
37
} )
37
38
}
38
39
} ,
You can’t perform that action at this time.
0 commit comments