diff --git a/core/designsystem/src/main/java/com/google/samples/apps/nowinandroid/core/designsystem/component/DynamicAsyncImage.kt b/core/designsystem/src/main/java/com/google/samples/apps/nowinandroid/core/designsystem/component/DynamicAsyncImage.kt index 94e65a780..7a3c39393 100644 --- a/core/designsystem/src/main/java/com/google/samples/apps/nowinandroid/core/designsystem/component/DynamicAsyncImage.kt +++ b/core/designsystem/src/main/java/com/google/samples/apps/nowinandroid/core/designsystem/component/DynamicAsyncImage.kt @@ -41,13 +41,13 @@ fun DynamicAsyncImage( imageUrl: String, contentDescription: String?, modifier: Modifier = Modifier, - placeholder: Painter? = null, + placeholder: Painter = painterResource(R.drawable.ic_placeholder_default), ) { val iconTint = LocalTintTheme.current.iconTint SubcomposeAsyncImage( error = { Image( - painter = placeholder ?: painterResource(R.drawable.ic_placeholder_default), + painter = placeholder, contentDescription = "placeholder image", ) },