Skip to content

Commit 06ffdb4

Browse files
authored
fix: incorrect title page of friendships (#541)
**Describe the pull request** This pull request fix a display glitch on friendship page title when no emoji are present in the group name. As emoji feature are not implemented yet, the display will be optional. **Checklist** - [x] I have made the modifications or added tests related to my PR - [x] I have run the tests and linters locally and they pass - [x] I have added/updated the documentation for my RP
1 parent 8b89116 commit 06ffdb4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

web/ui/src/pages/friends/[groupSlug].tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ const IndexPage: NextPage<PageProps> = () => {
102102
const hasFollowing = (myFollowings?.length || 0) > 0;
103103
const currentGroup = myFollowsGroups?.find((g) => g?.slug === groupSlug);
104104
const pageTitle = currentGroup
105-
? `${currentGroup?.emoji} ${currentGroup?.name} - Friendship - S42`
105+
? `${
106+
currentGroup?.emoji + ' ' || ''
107+
}${currentGroup?.name} - Friendship - S42`
106108
: `All Friendship - S42`;
107109

108110
return (

0 commit comments

Comments
 (0)