Skip to content

Commit

Permalink
Merge branch 'feature/82781/diel_for_all' of github.com:matin-deriv/d…
Browse files Browse the repository at this point in the history
…eriv-app into feature/82781/diel_for_all
  • Loading branch information
amina-deriv committed Jan 20, 2023
2 parents b3be077 + c2033dd commit 6fb7d00
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/appstore/src/components/main-title-bar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -37,7 +38,7 @@ const MainTitleBar = () => {
<div className='main-title-bar-mobile--account-type-dropdown'>
<AccountTypeDropdown />
</div>
{is_low_risk_cr_real_account && (
{is_low_risk_cr_real_account && is_landing_company_loaded ? (
<div className='main-title-bar-mobile--regulator'>
<div
className='main-title-bar-mobile--regulator--compare-modal'
Expand All @@ -56,7 +57,7 @@ const MainTitleBar = () => {
<div label={localize('EU')} />
</Tabs>
</div>
)}
) : null}
</div>
<AssetSummary />
</MobileWrapper>
Expand Down

0 comments on commit 6fb7d00

Please sign in to comment.