Skip to content

Commit 3429220

Browse files
mgurgelshakyShane
andauthored
Adopted Shane’s suggestion
Co-authored-by: Shane Osbourne <[email protected]>
1 parent e08a269 commit 3429220

File tree

1 file changed

+3
-7
lines changed
  • packages/special-pages/pages/special-error/app/components

1 file changed

+3
-7
lines changed

packages/special-pages/pages/special-error/app/components/App.jsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,14 @@ function PageTitle() {
3333
const { t } = useTypedTranslation()
3434

3535
useEffect(() => {
36-
let title
37-
3836
switch(kind) {
3937
case 'phishing':
40-
title = t('phishingPageHeading')
38+
document.title = t('phishingPageHeading')
4139
break;
4240
default:
43-
title = t('sslPageHeading')
41+
document.title = t('sslPageHeading')
4442
}
45-
46-
document.title = title
47-
}, [])
43+
}, [kind, t])
4844

4945
return null
5046
}

0 commit comments

Comments
 (0)