diff --git a/shared/src/commonMain/kotlin/dev/sasikanth/rss/reader/home/ui/HomeScreen.kt b/shared/src/commonMain/kotlin/dev/sasikanth/rss/reader/home/ui/HomeScreen.kt index c274aa2ea..5fd267fc2 100644 --- a/shared/src/commonMain/kotlin/dev/sasikanth/rss/reader/home/ui/HomeScreen.kt +++ b/shared/src/commonMain/kotlin/dev/sasikanth/rss/reader/home/ui/HomeScreen.kt @@ -252,8 +252,8 @@ private fun HomeScreenContent( val hasContent = featuredPosts.isNotEmpty() || posts.itemCount != 0 val dynamicColorState = LocalDynamicColorState.current - LaunchedEffect(hasContent) { - if (!hasContent) { + LaunchedEffect(featuredPosts) { + if (featuredPosts.isEmpty()) { dynamicColorState.reset() } }