diff options
Diffstat (limited to 'htdocs/src')
| -rw-r--r-- | htdocs/src/js/app.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/htdocs/src/js/app.js b/htdocs/src/js/app.js index e8ed928..13d63ef 100644 --- a/htdocs/src/js/app.js +++ b/htdocs/src/js/app.js @@ -345,7 +345,7 @@ function setAppLocale() { (lang) => preferredLanguage.startsWith(lang.code) // eslint-disable-next-line function-paren-newline -- Conflict with Prettier ); - const locale = supportedLanguage.code || 'en'; + const locale = supportedLanguage?.code || 'en'; setLocale(locale); } |
