Skip to content

Commit

Permalink
[QA-1753] Fix Suggested Artists Popup lag (#10380)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle-Shanks authored Nov 7, 2024
1 parent 95d77c7 commit 45f2e3f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export const ArtistRecommendations = forwardRef<

const [idsToFollow, setIdsToFollow] = useState<ID[] | null>(null)
const artistsToFollow = useSelector<CommonState, User[]>((state) =>
Object.values(getUsers(state, { ids: idsToFollow }))
Object.values(getUsers(state, { ids: idsToFollow ?? [] }))
)

// Start fetching the related artists
Expand Down Expand Up @@ -236,7 +236,7 @@ export const ArtistRecommendations = forwardRef<
closeParent={onClose}
/>
))
.reduce((prev, curr) => [prev, ', ', curr])}
.reduce((prev, curr) => [prev, ', ', curr], '')}
{artistsToFollow.length > 3
? `, and ${artistsToFollow.length - 3} others.`
: ''}
Expand Down

0 comments on commit 45f2e3f

Please sign in to comment.