Skip to content

Commit

Permalink
Fix visible collectibles for upload popup (#3093)
Browse files Browse the repository at this point in the history
Co-authored-by: Saliou Diallo <saliou@audius.co>
  • Loading branch information
sddioulde and Saliou Diallo committed Mar 23, 2023
1 parent c143078 commit 4ad5cd2
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import {
RandomImage,
accountSelectors,
badgeTiers,
useSelectTierInfo
useSelectTierInfo,
removeNullable
} from '@audius/common'
import { Button, ButtonType, Popup, SegmentedControl } from '@audius/stems'
import cn from 'classnames'
Expand Down Expand Up @@ -143,7 +144,9 @@ const CollectionPage = ({ onSelect, source }) => {
}, {})

const visibleCollectibles = collectibles?.order
? collectibles.order.map((id) => collectibleIdMap[id])
? collectibles.order
.map((id) => collectibleIdMap[id])
.filter(removeNullable)
: allCollectibles

const imgs = visibleCollectibles.filter((c) => c.mediaType === 'IMAGE')
Expand Down

0 comments on commit 4ad5cd2

Please sign in to comment.