Fix instances of double translation and guard translation calls using typescript (#11443)
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
This commit is contained in:
parent
d13b6e1b41
commit
ac70f7ac9b
157 changed files with 554 additions and 780 deletions
|
@ -269,7 +269,7 @@ export default class SettingsStore {
|
|||
else displayName = displayName["default"];
|
||||
}
|
||||
|
||||
return _t(displayName as string);
|
||||
return displayName ? _t(displayName) : null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue