Skip to content

Commit

Permalink
ClubList: Check for unreads before showing unread
Browse files Browse the repository at this point in the history
Signed-off-by: Shashank Verma <[email protected]>
  • Loading branch information
shank03 committed Nov 21, 2023
1 parent 2f4344b commit bf3ddd3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ fun ClubList(
} else {
visibleItemsInfo.map { it.index }
}
showUnreadBtn.value = !visibleItemIds.any { vis -> clubsInfo.value[vis].second }
showUnreadBtn.value = clubsInfo.value.any { it.second } &&
!visibleItemIds.any { vis -> clubsInfo.value[vis].second }
}
}
}
Expand Down

0 comments on commit bf3ddd3

Please sign in to comment.