Skip to content

Commit c68bc2d

Browse files
authored
fix: poll vote fallback to id if name not present (#2958)
1 parent 13f8872 commit c68bc2d

File tree

1 file changed

+1
-1
lines changed
  • package/src/components/Poll/components/PollResults

1 file changed

+1
-1
lines changed

package/src/components/Poll/components/PollResults/PollVote.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const PollVote = ({ vote }: { vote: PollVoteClass }) => {
4747
<Avatar image={vote.user.image as string} key={vote.id} size={20} />
4848
) : null}
4949
<Text style={[styles.voteUserName, { color: black }, userName]}>
50-
{isAnonymous ? t<string>('Anonymous') : vote.user?.name}
50+
{isAnonymous ? t<string>('Anonymous') : vote.user?.name ?? vote.user?.id}
5151
</Text>
5252
</View>
5353
<Text style={[styles.voteDate, { color: text_low_emphasis }, dateText]}>{dateString}</Text>

0 commit comments

Comments
 (0)