Skip to content

Commit

Permalink
Merge branch 'release_1.1.0' of https://github.com/chaion/wallet into…
Browse files Browse the repository at this point in the history
… release_1.1.0
  • Loading branch information
chen committed Sep 29, 2019
2 parents f86b338 + 19dbea1 commit f4008a4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion models/settings.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ export default {
},
*getSupportedModule(action, { select, call, put }) {
const { result, data: supportedModule } = yield call(getSupportedModule);
let { bottomBarTab, lang } = yield select(({ settingsModel }) => ({ ...settingsModel }));
if (result) {
let { bottomBarTab, lang } = yield select(({ settingsModel }) => ({ ...settingsModel }));
lang = lang === 'auto' ? DeviceInfo.getDeviceLocale() : lang;
if (!supportedModule.includes('Pokket')) {
bottomBarTab.remove('signed_pokket');
Expand All @@ -108,6 +108,12 @@ export default {
bottomBarTab.remove('signed_dex');
}
yield put(createAction('updateState')({ bottomBarTab }));
} else {
lang = lang === 'auto' ? DeviceInfo.getDeviceLocale() : lang;
if (lang.indexOf('en') >= 0) {
bottomBarTab.remove('signed_news');
}
bottomBarTab.remove('signed_pokket');
}
},
*reset(action, { put }) {
Expand Down

0 comments on commit f4008a4

Please sign in to comment.