File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
special-pages/pages/special-error/app/hooks Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -60,13 +60,13 @@ export function useWarningHeading() {
60
60
const { t } = useTypedTranslation ( ) ;
61
61
const { kind } = useErrorData ( ) ;
62
62
63
- switch ( kind ) {
63
+ switch ( kind ) {
64
64
case 'ssl' :
65
65
return t ( 'sslPageHeading' ) ;
66
66
case 'malware' :
67
67
case 'phishing' :
68
68
case 'scam' :
69
- const translationKey = /** @type {"malwarePageHeading"|"phishingPageHeading"|"scamPageHeading" } */ ( `${ kind } PageHeading` ) ;
69
+ const translationKey = /** @type {"malwarePageHeading"|"phishingPageHeading"|"scamPageHeading" } */ ( `${ kind } PageHeading` ) ;
70
70
return t ( translationKey ) . replace ( '{newline}' , '\n' ) ;
71
71
default :
72
72
}
@@ -113,15 +113,17 @@ export function useAdvancedInfoHeading() {
113
113
const errorData = useErrorData ( ) ;
114
114
const { kind } = errorData ;
115
115
116
- switch ( kind ) {
116
+ switch ( kind ) {
117
117
case 'ssl' :
118
118
return t ( 'sslAdvancedInfoHeading' ) ;
119
119
case 'malware' :
120
120
case 'phishing' :
121
121
case 'scam' :
122
122
const { url } = /** @type {MaliciousSite } */ ( errorData ) ;
123
123
const anchorTagParams = reportSiteAnchorTagParams ( url ) ;
124
- const translationKey = /** @type {"malwareAdvancedInfoHeading"|"phishingAdvancedInfoHeading"|"scamAdvancedInfoHeading" } */ ( `${ kind } AdvancedInfoHeading` ) ;
124
+ const translationKey = /** @type {"malwareAdvancedInfoHeading"|"phishingAdvancedInfoHeading"|"scamAdvancedInfoHeading" } */ (
125
+ `${ kind } AdvancedInfoHeading`
126
+ ) ;
125
127
return < Trans str = { t ( translationKey ) } values = { { a : anchorTagParams } } /> ;
126
128
default :
127
129
}
You can’t perform that action at this time.
0 commit comments