Normalize display of artist names

This commit is contained in:
Claudio Ortolina
2024-10-07 14:57:30 +01:00
parent 764c4cebb3
commit ddbda5b4d2
7 changed files with 14 additions and 3 deletions
+7
View File
@@ -0,0 +1,7 @@
defmodule MusicLibraryWeb.ArtistHelpers do
def format_artist_names(artists) do
artists
|> Enum.map(fn a -> a.name end)
|> Enum.join(", ")
end
end