Display firstname instead of username admin
This commit is contained in:
@@ -164,7 +164,7 @@ export default function Teks({parole, paroleId, commentaires, open, success, err
|
|||||||
)}
|
)}
|
||||||
{parole?.userAdmin?.data && !parole.user.data && (
|
{parole?.userAdmin?.data && !parole.user.data && (
|
||||||
<Typography style={{marginBottom: '1.5em'}} display='block' variant='caption'>
|
<Typography style={{marginBottom: '1.5em'}} display='block' variant='caption'>
|
||||||
<i>parole soumise par {parole.userAdmin.data.attributes.username || parole.userAdmin.data.attributes.firstname}</i>
|
<i>parole soumise par {parole.userAdmin.data.attributes.firstname}</i>
|
||||||
</Typography>
|
</Typography>
|
||||||
)}
|
)}
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
Reference in New Issue
Block a user