From: Dessalines Date: Thu, 30 Jul 2020 02:35:08 +0000 (-0400) Subject: Minor syntax fix. X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%24%7B%60data:application/%22https:/hacktivis.me/README.ru.md?a=commitdiff_plain;h=c24a619594f4a6c611f4d8da4eb77ed41601abf2;p=lemmy.git Minor syntax fix. --- diff --git a/ui/src/utils.ts b/ui/src/utils.ts index fa7f1297..55a0777a 100644 --- a/ui/src/utils.ts +++ b/ui/src/utils.ts @@ -350,7 +350,7 @@ export function debounce( }; } -export function getLanguage(override: string): string { +export function getLanguage(override?: string): string { let user = UserService.Instance.user; let lang = override || (user && user.lang ? user.lang : 'browser');