We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb8c0da commit c76c15cCopy full SHA for c76c15c
app/components/BlueskyComment.vue
@@ -38,11 +38,6 @@ function getHostname(uri: string): string {
38
return uri
39
}
40
41
-
42
-function firstChar(str: string): string {
43
- const segmenter = new Intl.Segmenter({ granularity: 'grapheme' })
44
- return Array.from(segmenter.segment(str))[0]?.segment ?? ''
45
-}
46
</script>
47
48
<template>
@@ -70,7 +65,7 @@ function firstChar(str: string): string {
70
65
depth === 0 ? 'w-10 h-10' : 'w-8 h-8 text-sm',
71
66
]"
72
67
>
73
- {{ firstChar(comment.author.displayName || comment.author.handle).toUpperCase() }}
68
+ {{ (comment.author.displayName || comment.author.handle).charAt(0).toUpperCase() }}
74
69
</div>
75
</a>
76
0 commit comments