File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
special-pages/pages/special-error/app/hooks Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ export function useWarningHeading() {
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 {const } */ ( `${ kind } PageHeading` ) ;
70
70
return t ( translationKey ) . replace ( '{newline}' , '\n' ) ;
71
71
default :
72
72
}
@@ -121,7 +121,7 @@ export function useAdvancedInfoHeading() {
121
121
case 'scam' :
122
122
const { url } = /** @type {MaliciousSite } */ ( errorData ) ;
123
123
const anchorTagParams = reportSiteAnchorTagParams ( url ) ;
124
- const translationKey = /** @type {"malwareAdvancedInfoHeading"|"phishingAdvancedInfoHeading"|"scamAdvancedInfoHeading" } */ (
124
+ const translationKey = /** @type {const } */ (
125
125
`${ kind } AdvancedInfoHeading`
126
126
) ;
127
127
return < Trans str = { t ( translationKey ) } values = { { a : anchorTagParams } } /> ;
You can’t perform that action at this time.
0 commit comments