HOTFIX Separate language from preference update (#4062)

This commit is contained in:
Dat Dang
2025-09-26 11:58:25 +07:00
committed by GitHub
parent eb73a0773c
commit 24095dc147
14 changed files with 65 additions and 13 deletions
@@ -75,6 +75,7 @@ class LanguageAndRegionController extends BaseController {
}
consumeState(saveLanguageToServerSettingsInteractor.execute(
session,
accountId,
localeCurrent,
));
@@ -179,10 +179,12 @@ class PreferencesController extends BaseController {
break;
}
final session = _manageAccountDashBoardController.sessionCurrent;
final accountId = _manageAccountDashBoardController.accountId.value;
if (accountId != null && newSettingOption != null) {
if (session != null && accountId != null && newSettingOption != null) {
consumeState(
_updateServerSettingInteractor.execute(
session,
accountId,
newSettingOption,
),