Skip to content

Commit

Permalink
Merge branch 'master' into kate/DTRA-249/remove_duplicated_files
Browse files Browse the repository at this point in the history
  • Loading branch information
kate-deriv committed Jun 29, 2023
2 parents 5874dbd + f88bb22 commit 138a13b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 62 deletions.
4 changes: 2 additions & 2 deletions packages/appstore/src/components/cfds-listing/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ const CFDsListing = () => {
)}

{/* TODO: remove is_real flag to unblock the flow for derivez real account creation */}
{is_landing_company_loaded && !is_real
{/* {is_landing_company_loaded && !is_real
? available_derivez_accounts?.map((account: AvailableAccount) => {
const existing_accounts = getExistingAccounts(account.platform, account.market_type);
const has_existing_accounts = existing_accounts.length > 0;
Expand Down Expand Up @@ -342,7 +342,7 @@ const CFDsListing = () => {
/>
);
})
: !is_real && <PlatformLoader />}
: !is_real && <PlatformLoader />} */}
</ListingContainer>
);
};
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ const StaticDashboard = ({
is_financial_last_step={is_financial_last_step}
is_eu_user={is_eu_user}
/>
<StaticCFDAccountManager
{/* <StaticCFDAccountManager
type='Financial'
platform='derivez'
appname={localize('Deriv EZ')}
Expand All @@ -580,7 +580,7 @@ const StaticDashboard = ({
is_blurry={is_blurry}
is_onboarding_animated={is_onboarding_animated}
is_eu_user={is_eu_user}
/>
/> */}
</div>
)}
</div>
Expand Down
4 changes: 2 additions & 2 deletions packages/cfd/src/Stores/Modules/CFD/cfd-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -701,8 +701,8 @@ export default class CFDStore extends BaseStore {

setDerivezToken(response, server) {
if (!response.error) {
const { derivez } = response.service_token;
this.derivez_tokens[server] = derivez.token;
const { pandats } = response.service_token;
this.derivez_tokens[server] = pandats.token;
}
}

Expand Down
1 change: 1 addition & 0 deletions packages/stores/src/mockStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ const mock = (): TStores & { is_mock: boolean } => {
is_deposit_lock: false,
is_dxtrade_allowed: false,
is_eu: false,
is_eu_country: false,
is_financial_account: false,
is_financial_information_incomplete: false,
is_low_risk: false,
Expand Down
1 change: 1 addition & 0 deletions packages/stores/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ type TNotification =

type TClientStore = {
accounts: { [k: string]: TActiveAccount };
is_eu_country: boolean;
active_accounts: TActiveAccount[];
active_account_landing_company: string;
trading_platform_available_accounts: TTradingPlatformAvailableAccount[];
Expand Down

0 comments on commit 138a13b

Please sign in to comment.