Skip to content

Commit a77605d

Browse files
committed
refactor(comments): simplify commenter name display
- Remove conditional logic for displaying user email - Use consistent method for displaying commenter name
1 parent 6e98e59 commit a77605d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/user_content/engagement/view/comments_bottom_sheet.dart

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,7 @@ class __CommentsBottomSheetViewState extends State<_CommentsBottomSheetView> {
133133
title: Row(
134134
children: [
135135
Text(
136-
isOwnComment
137-
? (user.email.isNotEmpty
138-
? user.email
139-
: l10n.accountNoNameUser)
140-
: l10n.commenterName(engagement.userId.substring(0, 4)),
136+
l10n.commenterName(engagement.userId.substring(0, 4)),
141137
style: theme.textTheme.titleSmall,
142138
),
143139
const SizedBox(width: AppSpacing.sm),

0 commit comments

Comments
 (0)