Skip to content

Commit

Permalink
feat(artist): use correct stats
Browse files Browse the repository at this point in the history
  • Loading branch information
angristan committed Jul 24, 2021
1 parent 84f62ac commit c160a5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firstfm/Views/Artist/ArtistInfoView.swift
Expand Up @@ -7,10 +7,10 @@ struct ArtistInfoView: View {

var body: some View {
HStack {
Text("\(Int(artist.playcount ?? "0")?.formatted() ?? "0") scrobbles")
Text("\(artistInfo?.stats.playcount.formatted() ?? "0") scrobbles")
.font(.subheadline)
.foregroundColor(.gray)
Text("\(Int(artist.listeners ?? "0")?.formatted() ?? "0") listeners")
Text("\(artistInfo?.stats.listeners.formatted() ?? "0") listeners")
.font(.subheadline)
.foregroundColor(.gray)
}
Expand Down

0 comments on commit c160a5a

Please sign in to comment.