Fix pataje username

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-05-22 13:42:51 +04:00
parent b04495d8ea
commit 482f9c1bcd
+1 -1
View File
@@ -51,7 +51,7 @@ export default function Pataje({parole, setError, setSuccess}) {
const alias = artistes.data.map(({attributes}) => attributes.alias) const alias = artistes.data.map(({attributes}) => attributes.alias)
const renderAwtis = new Intl.ListFormat('fr').format(alias) const renderAwtis = new Intl.ListFormat('fr').format(alias)
const text = parole.user || parole.userAdmin ? `${renderAwtis} - ${titre} (Paroles et Traductions) - (texte soumis par ${parole?.user?.username || parole.userAdmin})` : `${renderAwtis} - ${parole} (Paroles et Traductions)` const text = parole.user || parole.userAdmin ? `${renderAwtis} - ${titre} (Paroles et Traductions) - (texte soumis par ${parole?.user?.data?.attributes?.username || parole.userAdmin?.data?.attributes?.username})` : `${renderAwtis} - ${parole} (Paroles et Traductions)`
const handleClose = () => { const handleClose = () => {
setOpen(false) setOpen(false)