diff --git a/src/components/Layout/TopBar.jsx b/src/components/Layout/TopBar.jsx index a176d84..76054d1 100644 --- a/src/components/Layout/TopBar.jsx +++ b/src/components/Layout/TopBar.jsx @@ -100,7 +100,6 @@ export default function TopBar({ theme = "dark", onChangeTheme }) { if (authenticated) setShowAuth(false); }, [authenticated]); - /* SW_URL_NOTICE:BEGIN */ useEffect(() => { try { const { get, qs, hs, hash } = parseMergedParams(); @@ -129,7 +128,7 @@ export default function TopBar({ theme = "dark", onChangeTheme }) { if (truthyParam(verified)) { const who = (email || uname || last?.email || last?.username || "").trim(); - setSignupInfo(`✅ Email confirmé\( {who ? ` ( \){who})` : ""}. Tu peux te connecter.`); + setSignupInfo("✅ Email confirmé" + (who ? " (" + who + ")" : "") + ". Tu peux te connecter."); setMode("login"); setShowAuth(true); @@ -137,7 +136,7 @@ export default function TopBar({ theme = "dark", onChangeTheme }) { if (prefill) setLoginUser(prefill); } else if (truthyParam(signup)) { const who = (email || uname || last?.email || last?.username || "").trim(); - setSignupInfo(`✅ Compte créé\( {who ? ` ( \){who})` : ""}. Vérifie tes emails (et le spam), puis connecte-toi.`); + setSignupInfo("✅ Compte créé" + (who ? " (" + who + ")" : "") + ". Vérifie tes emails (et le spam), puis connecte-toi."); setMode("login"); setShowAuth(true); @@ -207,7 +206,7 @@ export default function TopBar({ theme = "dark", onChangeTheme }) { localStorage.setItem(LAST_SIGNUP_KEY, JSON.stringify({ username: u, email: em })); } catch {} - setSignupInfo(`✅ Compte créé (${em}). Vérifie tes emails (spam aussi), puis connecte-toi.`); + setSignupInfo("✅ Compte créé (" + em + "). Vérifie tes emails (spam aussi), puis connecte-toi."); setMode("login"); setLoginUser(u || em); setLoginPass("");