Skip to content

Commit

Permalink
Make sure blog.url is not empty before using it.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniloercoli committed Feb 7, 2024
1 parent afff0cd commit fc1ffd8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ sealed class SubfilterListItem(val type: ItemType, val isTrackedItem: Boolean =
override val label: UiString = if (blog.name.isNotEmpty()) {
UiStringText(blog.name)
} else {
UiStringText(UrlUtils.getHost(blog.url))
UiStringText(if (blog.url.isNotEmpty()) UrlUtils.getHost(blog.url) else "")
}
val showUnseenCount: Boolean = blog.numUnseenPosts > 0
val unseenCount: Int = blog.numUnseenPosts
Expand Down

0 comments on commit fc1ffd8

Please sign in to comment.