Replace join by Intl object
This commit is contained in:
@@ -37,7 +37,8 @@ export default function Pataje({teks, setError, setSuccess}) {
|
||||
const [open, setOpen] = useState(false)
|
||||
|
||||
const patajeUrl = `${SITE_URL}/teks/${slug}#${slug}`
|
||||
const renderAwtis = awtis.map(a => a.alias).join(', ')
|
||||
const alias = awtis.map(({alias}) => alias)
|
||||
const renderAwtis = new Intl.ListFormat('fr').format(alias)
|
||||
|
||||
const text = teks.user ? `${renderAwtis} - ${tit} (Pawòl) - (texte soumis par ${teks.user.username})` : `${renderAwtis} - ${tit} (Pawòl)`
|
||||
const twitterUrl = 'https://twitter.com/intent/tweet'
|
||||
|
||||
Reference in New Issue
Block a user