diff --git a/packages/special-pages/pages/special-error/app/components/App.jsx b/packages/special-pages/pages/special-error/app/components/App.jsx index b1c58de2cb..b1d2a64d79 100644 --- a/packages/special-pages/pages/special-error/app/components/App.jsx +++ b/packages/special-pages/pages/special-error/app/components/App.jsx @@ -33,18 +33,14 @@ function PageTitle() { const { t } = useTypedTranslation() useEffect(() => { - let title - switch(kind) { case 'phishing': - title = t('phishingPageHeading') + document.title = t('phishingPageHeading') break; default: - title = t('sslPageHeading') + document.title = t('sslPageHeading') } - - document.title = title - }, []) + }, [kind, t]) return null }