Skip to content

Commit

Permalink
feat: remove title for dashboard when there is no ooni provided test
Browse files Browse the repository at this point in the history
  • Loading branch information
aanorbel committed May 13, 2024
1 parent 099ad51 commit ecbca71
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ class DashboardViewModel @Inject constructor(
groupedItemList.addAll(itemList)
}
if (ooniRunDescriptors.isNotEmpty()) {
groupedItemList.add(oonRunLinksTitle)
if (groupedItems.isNotEmpty()) {
groupedItemList.add(oonRunLinksTitle)
}
groupedItemList.addAll(ooniRunDescriptors)
}
this.groupedItemList.value = groupedItemList
Expand Down

0 comments on commit ecbca71

Please sign in to comment.