Skip to content

Commit

Permalink
fix: authed input name getter
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Jun 18, 2024
1 parent cb9264f commit 2bae0e7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/modules/comment/CommentBox/AuthedInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ export const CommentBoxAuthedInput = () => {
const { user } = useUser()
const setter = useSetCommentBoxValues()
const displayName = user
? user.fullName || user.lastName || user.firstName || 'Anonymous'
? user.fullName ||
`${user.firstName || ''} ${user.lastName || ''}`.trim() ||
user.username ||
'Anonymous'
: ''

useEffect(() => {
Expand Down

0 comments on commit 2bae0e7

Please sign in to comment.