We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e08a269 commit 3429220Copy full SHA for 3429220
packages/special-pages/pages/special-error/app/components/App.jsx
@@ -33,18 +33,14 @@ function PageTitle() {
33
const { t } = useTypedTranslation()
34
35
useEffect(() => {
36
- let title
37
-
38
switch(kind) {
39
case 'phishing':
40
- title = t('phishingPageHeading')
+ document.title = t('phishingPageHeading')
41
break;
42
default:
43
- title = t('sslPageHeading')
+ document.title = t('sslPageHeading')
44
}
45
46
- document.title = title
47
- }, [])
+ }, [kind, t])
48
49
return null
50
0 commit comments