Apply strictNullChecks to src/components/views/auth/* (#10299
* Apply `strictNullChecks` to src/components/views/auth/* * Iterate PR
This commit is contained in:
committed by
GitHub
parent
c79eff2292
commit
32aa18ff2e
@@ -34,12 +34,12 @@ import { _t, _td, Tags, TranslatedString } from "../languageHandler";
|
||||
* @returns {*} Translated string or react component
|
||||
*/
|
||||
export function messageForResourceLimitError(
|
||||
limitType: string,
|
||||
limitType: string | undefined,
|
||||
adminContact: string | undefined,
|
||||
strings: Record<string, string>,
|
||||
extraTranslations?: Tags,
|
||||
): TranslatedString {
|
||||
let errString = strings[limitType];
|
||||
let errString = limitType ? strings[limitType] : undefined;
|
||||
if (errString === undefined) errString = strings[""];
|
||||
|
||||
const linkSub = (sub: string): ReactNode => {
|
||||
|
||||
Reference in New Issue
Block a user