Skip to content

Commit

Permalink
[C-3639] Fix empty album tab state (#7222)
Browse files Browse the repository at this point in the history
  • Loading branch information
amendelsohn authored Jan 18, 2024
1 parent 059312d commit 120c8f6
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ import {
profilePageFeedLineupActions as feedActions,
badgeTiers,
useSelectTierInfo,
CreatePlaylistSource,
FeatureFlags
CreatePlaylistSource
} from '@audius/common'

import IconAlbum from 'assets/img/iconAlbum.svg'
Expand All @@ -35,7 +34,6 @@ import ConnectedProfileCompletionHeroCard from 'components/profile-progress/Conn
import { ProfileMode, StatBanner } from 'components/stat-banner/StatBanner'
import { StatProps } from 'components/stats/Stats'
import UploadChip from 'components/upload/UploadChip'
import { useFlag } from 'hooks/useRemoteConfig'
import useTabs, { TabHeader, useTabRecalculator } from 'hooks/useTabs/useTabs'
import { BlockUserConfirmationModal } from 'pages/chat-page/components/BlockUserConfirmationModal'
import { UnblockUserConfirmationModal } from 'pages/chat-page/components/UnblockUserConfirmationModal'
Expand Down Expand Up @@ -240,7 +238,6 @@ const ProfilePage = ({
setNotificationSubscription,
didChangeTabsFrom
}: ProfilePageProps) => {
const { isEnabled: isEditAlbumsEnabled } = useFlag(FeatureFlags.EDIT_ALBUMS)
const renderProfileCompletionCard = () => {
return isOwner ? <ConnectedProfileCompletionHeroCard /> : null
}
Expand Down Expand Up @@ -310,7 +307,7 @@ const ProfilePage = ({
}}
/>
))
if (isOwner && isEditAlbumsEnabled) {
if (isOwner) {
albumCards.unshift(
<UploadChip
key='upload-chip'
Expand Down

0 comments on commit 120c8f6

Please sign in to comment.