Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
fix(startup): set app default language if null
Browse files Browse the repository at this point in the history
  • Loading branch information
rhahao committed Feb 5, 2022
1 parent 26618df commit ea44037
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/Startup.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ const Startup = () => {
await initAppDb();
await checkSrcUpdate();

const {
let {
cong_number,
cong_name,
class_count,
Expand All @@ -164,7 +164,7 @@ const Startup = () => {
setClassCount(class_count);
setMeetingDay(meeting_day);
setCongID(cong_id || '');
setAppLang(app_lang);
setAppLang(app_lang || 'e');
setLiveClass(liveEventClass);

i18n.changeLanguage(app_lang);
Expand Down

0 comments on commit ea44037

Please sign in to comment.