Skip to content

Commit

Permalink
feat(artist): improve album playcount formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
angristan committed Jul 23, 2021
1 parent 67a687b commit 5154cf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firstfm/Views/Artist/TopArtistAlbumsView.swift
Expand Up @@ -23,7 +23,7 @@ struct TopArtistAlbumsView: View {
.cornerRadius(5)
.aspectRatio(contentMode: .fill)
Text(album.name).font(.headline).lineLimit(1).foregroundColor(.white)
Text("\(String(format: "%ld", locale: Locale.current, album.playcount) ) listeners")
Text("\(Int(exactly: album.playcount)?.formatted() ?? "0") scrobbles")
.font(.subheadline)
.foregroundColor(.gray).lineLimit(1)
}
Expand Down

0 comments on commit 5154cf0

Please sign in to comment.