Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix lists tab appearing when user has a starterpack but no lists (#7952)

* Fix list tab showing up when no lists

* tweak code

authored by

Samuel Newman and committed by
GitHub
6cbd9fbc c7ba0e4f

+7 -5
+7 -5
src/view/screens/Profile.tsx
··· 208 208 const showMediaTab = !hasLabeler 209 209 const showVideosTab = !hasLabeler 210 210 const showLikesTab = isMe 211 - const showFeedsTab = isMe || (profile.associated?.feedgens || 0) > 0 212 - const showStarterPacksTab = 213 - isMe || (profile.associated?.starterPacks || 0) > 0 214 - const showListsTab = 215 - hasSession && (isMe || (profile.associated?.lists || 0) > 0) 211 + const feedGenCount = profile.associated?.feedgens || 0 212 + const showFeedsTab = isMe || feedGenCount > 0 213 + const starterPackCount = profile.associated?.starterPacks || 0 214 + const showStarterPacksTab = isMe || starterPackCount > 0 215 + // subtract starterpack count from list count, since starterpacks are a type of list 216 + const listCount = (profile.associated?.lists || 0) - starterPackCount 217 + const showListsTab = hasSession && (isMe || listCount > 0) 216 218 217 219 const sectionTitles = [ 218 220 showFiltersTab ? _(msg`Labels`) : undefined,