From b2ca1badfb4012af963ded99dc7ee1d9a8cd5ee4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Thu, 27 Oct 2022 19:41:38 +0400 Subject: [PATCH] Fix pataje text --- components/teks/pataje.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/teks/pataje.js b/components/teks/pataje.js index 54cdd0a..65e2abd 100644 --- a/components/teks/pataje.js +++ b/components/teks/pataje.js @@ -51,7 +51,7 @@ export default function Pataje({parole, setError, setSuccess}) { const alias = artistes.data.map(({attributes}) => attributes.alias) const renderAwtis = new Intl.ListFormat('fr').format(alias) - const text = parole.user || parole.userAdmin ? `${renderAwtis} - ${titre} (Paroles et Traductions) - (parole soumise par ${parole?.user?.data?.attributes?.username || parole.userAdmin?.data?.attributes?.username || parole.userAdmin?.data?.attributes?.firstname})` : `${renderAwtis} - ${parole} (Paroles et Traductions)` + const text = parole.user.data || parole.userAdmin.data ? `${renderAwtis} - ${titre} (Paroles et Traductions) - (parole soumise par ${parole?.user?.data?.attributes?.username || parole.userAdmin?.data?.attributes?.username || parole.userAdmin?.data?.attributes?.firstname})` : `${renderAwtis} - ${titre} (Paroles et Traductions)` const handleClose = () => { setOpen(false)