Skip to content

Commit

Permalink
Don't handle clicks on empty avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
nbradbury committed Oct 2, 2024
1 parent 5eed1ac commit 093c07c
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,14 @@ private fun UserDetail(
.fillMaxWidth()
) {
Column {
val avatarUrl = user.avatarUrls?.values?.firstOrNull()
UserAvatar(
avatarUrl = user.avatarUrls?.values?.firstOrNull(),
onAvatarClick = onAvatarClick
avatarUrl = avatarUrl,
onAvatarClick = if (avatarUrl.isNullOrEmpty()) {
null
} else {
onAvatarClick
}
)
}

Expand Down

0 comments on commit 093c07c

Please sign in to comment.