Skip to content

Commit

Permalink
[PAY-2741] Artist dashboard album stat (#8200)
Browse files Browse the repository at this point in the history
  • Loading branch information
dharit-tan authored Apr 23, 2024
1 parent 18c907a commit 1a1e687
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/web/src/pages/dashboard-page/store/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,12 @@ export const makeGetDashboard = () => {
// Artist stats
stats = {
tracks: account ? account.track_count : 0,
playlists: account ? account.playlist_count : 0,
// albums: account ? account.album_count : 0,
albums: account ? account.album_count : 0,
plays: tracks.reduce(
(totalPlays, track) => totalPlays + (track.play_count || 0),
0
),
reposts: account ? account.repost_count : 0,
// saves: account ? 0,
followers: account ? account.follower_count : 0
}
} else {
Expand Down

0 comments on commit 1a1e687

Please sign in to comment.