Apply strictNullChecks
to src/components/views/auth/*
(#10299
* Apply `strictNullChecks` to src/components/views/auth/* * Iterate PR
This commit is contained in:
parent
c79eff2292
commit
32aa18ff2e
16 changed files with 127 additions and 122 deletions
|
@ -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 => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue