Skip to content

Commit

Permalink
fix: missing merge code
Browse files Browse the repository at this point in the history
  • Loading branch information
yashim-deriv committed Dec 15, 2022
1 parent 21a3f16 commit 61774f7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/core/src/Stores/client-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -2505,5 +2505,17 @@ export default class ClientStore extends BaseStore {
await this.switchAccount(this.virtual_account_loginid);
}
}

setIsPreAppStore(is_pre_appstore) {
const trading_hub = is_pre_appstore ? 1 : 0;
WS.setSettings({
set_settings: 1,
trading_hub,
}).then(response => {
if (!response.error) {
this.account_settings = { ...this.account_settings, trading_hub };
}
});
}
}
/* eslint-enable */

0 comments on commit 61774f7

Please sign in to comment.