Treat empty avatar urls the same as null
This commit is contained in:
parent
9c4500363f
commit
3256e9bd80
1 changed files with 2 additions and 2 deletions
|
|
@ -49,7 +49,7 @@ fun Avatar(
|
|||
val commonModifier = modifier
|
||||
.size(avatarData.size.dp)
|
||||
.clip(CircleShape)
|
||||
if (avatarData.url == null) {
|
||||
if (avatarData.url.isNullOrBlank()) {
|
||||
InitialsAvatar(
|
||||
avatarData = avatarData,
|
||||
modifier = commonModifier,
|
||||
|
|
@ -72,7 +72,7 @@ private fun ImageAvatar(
|
|||
AsyncImage(
|
||||
model = avatarData,
|
||||
onError = {
|
||||
Timber.e("TAG", "Error $it\n${it.result}", it.result.throwable)
|
||||
Timber.e(it.result.throwable, "Error loading avatar $it\n${it.result}")
|
||||
},
|
||||
contentDescription = contentDescription,
|
||||
contentScale = ContentScale.Crop,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue