firtname and lastname before username
This commit is contained in:
@@ -30,6 +30,7 @@ import Page from "../../layouts/Page";
|
||||
import { Palette } from "../../styles";
|
||||
import { FONT_FAMILY } from "../../styles/Fonts";
|
||||
import Style, { gutters, size } from "../../styles/Style";
|
||||
import { getArtistDisplayName } from "../../utils/artistName";
|
||||
|
||||
// 20 secondes
|
||||
const timeBeforeIncrement = 20000;
|
||||
@@ -69,7 +70,11 @@ const MusicDetails = ({ route }) => {
|
||||
}, [project?.likedBy, currentUID]);
|
||||
|
||||
const title = project?.title || "Sans titre";
|
||||
const artist = owner?.userName || "MusicLand";
|
||||
const artist = useMemo(() => {
|
||||
const ownerName = getArtistDisplayName(owner, "");
|
||||
if (ownerName) return ownerName;
|
||||
return getArtistDisplayName(project, "MusicLand");
|
||||
}, [owner, project]);
|
||||
const coverUrl = project?.coverUrl || null;
|
||||
const songUrl = project?.songUrl || null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user