From: Dessalines Date: Thu, 30 Jul 2020 02:35:08 +0000 (-0400) Subject: Minor syntax fix. X-Git-Url: http://these/git/ui/assets/%7B%27/docs/static/git-logo.png?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');