Afficher l'inscription à la newsletter seulement sur la version française

pull/708/head
Maxime Quandalle 2019-10-02 14:38:45 +02:00
parent 18ef20f7eb
commit 76fe012949
No known key found for this signature in database
GPG Key ID: 428641C03D29CA10
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ export default function Newsletter() {
'app::newsletter::registered',
false
)
const { t } = useTranslation()
const { t, i18n } = useTranslation()
const tracker = useContext(TrackerContext)
const onSubmit = () => {
@ -17,7 +17,7 @@ export default function Newsletter() {
setTimeout(() => setUserRegistered(true), 0)
}
if (registered) {
if (i18n.language !== 'fr' && registered) {
return null
}