From d6ce59584c86f7bc4bebea0c04393eb342a7353b Mon Sep 17 00:00:00 2001 From: Thisyahlen Nair Date: Fri, 20 Jan 2023 16:32:36 +0800 Subject: [PATCH] fix: regulation switcher appearing for high risk --- packages/appstore/src/components/main-title-bar/index.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/appstore/src/components/main-title-bar/index.tsx b/packages/appstore/src/components/main-title-bar/index.tsx index 82085e7927c2..829a5fb2fd9e 100644 --- a/packages/appstore/src/components/main-title-bar/index.tsx +++ b/packages/appstore/src/components/main-title-bar/index.tsx @@ -10,8 +10,9 @@ import { observer } from 'mobx-react-lite'; import { useStores } from 'Stores/index'; const MainTitleBar = () => { - const { traders_hub } = useStores(); + const { traders_hub, client } = useStores(); const { active_index, handleTabItemClick, toggleRegulatorsCompareModal, content_flag } = traders_hub; + const { is_landing_company_loaded } = client; const is_low_risk_cr_real_account = content_flag === ContentFlag.LOW_RISK_CR_NON_EU || content_flag === ContentFlag.LOW_RISK_CR_EU; @@ -37,7 +38,7 @@ const MainTitleBar = () => {
- {is_low_risk_cr_real_account && ( + {is_low_risk_cr_real_account && is_landing_company_loaded ? (
{
- )} + ) : null}