Skip to content

Commit

Permalink
Feat new flow mf account (#33)
Browse files Browse the repository at this point in the history
* fix: resolved issues with index

* ref: refactored trade assessment code

* fix: added unique key

* fix: refactored response pick

* feat: added check to disable financial and trade assessment for not risk clients

* feat: made changes to dialog

* fix: modified text content

* fix: risk status flag

* fix: css issues

* fix: added missing store state

* fix: modified conditions

* fix: added new flag to check

* resolved conflict in ui-store

* fix: added missing store

* fix: status
  • Loading branch information
likhith-deriv committed Sep 7, 2022
1 parent 2ae88a8 commit 0ac8089
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,7 @@ export default connect(({ client, common, notifications }) => ({
is_authentication_needed: client.is_authentication_needed,
is_financial_account: client.is_financial_account,
is_mf: client.landing_company_shortcode === 'maltainvest',
is_financial_information_not_complete: client.is_trading_experience_incomplete,
is_financial_information_not_complete: client.is_financial_information_not_complete,
is_trading_experience_incomplete: client.is_trading_experience_incomplete,
is_virtual: client.is_virtual,
platform: common.platform,
Expand Down
10 changes: 7 additions & 3 deletions packages/core/src/Stores/client-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ export default class ClientStore extends BaseStore {
@observable mt5_trading_servers = [];
@observable dxtrade_trading_servers = [];
@observable is_cfd_poi_completed = false;
@observable is_financial_information_not_complete = false;
@observable cfd_score = 0;
Expand Down Expand Up @@ -474,10 +473,15 @@ export default class ClientStore extends BaseStore {
return needs_verification?.length === 1 && needs_verification?.includes('identity');
}

@computed
get real_account_creation_unlock_date() {
const { cooling_off_expiration_date } = this.account_settings;
return cooling_off_expiration_date;
}

@computed
get is_tnc_needed() {
if (this.is_virtual) return false;

const { client_tnc_status } = this.account_settings;
const { terms_conditions_version } = this.website_status;

Expand Down Expand Up @@ -964,7 +968,7 @@ export default class ClientStore extends BaseStore {
}
}

// @action.bound
@action.bound
setCFDScore(score) {
this.cfd_score = score;
}
Expand Down

0 comments on commit 0ac8089

Please sign in to comment.