From 61774f78162197ac723de6c04effa57fb73429f4 Mon Sep 17 00:00:00 2001 From: yashim-deriv Date: Thu, 15 Dec 2022 10:43:41 +0800 Subject: [PATCH] fix: missing merge code --- packages/core/src/Stores/client-store.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/core/src/Stores/client-store.js b/packages/core/src/Stores/client-store.js index fb9346396f35..1b8cb1a4fff9 100644 --- a/packages/core/src/Stores/client-store.js +++ b/packages/core/src/Stores/client-store.js @@ -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 */