Skip to content

Commit

Permalink
chore: filter platforms for autralia
Browse files Browse the repository at this point in the history
  • Loading branch information
aizad-deriv committed May 3, 2023
1 parent a54e4de commit 68f9f3f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/core/src/Stores/traders-hub-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,12 +283,15 @@ export default class TradersHubStore extends BaseStore {

getAvailablePlatforms() {
const appstore_platforms = getAppstorePlatforms();
if (this.is_eu_user && !this.is_demo_low_risk) {
if ((this.financial_restricted_countries || this.is_eu_user) && !this.is_demo_low_risk) {
this.available_platforms = appstore_platforms.filter(platform =>
['EU', 'All'].some(region => region === platform.availability)
);
return;
} else if (this.selected_region === 'Non-EU' || this.is_demo_low_risk) {
} else if (
(this.selected_region === 'Non-EU' && !this.financial_restricted_countries) ||
this.is_demo_low_risk
) {
this.available_platforms = appstore_platforms.filter(platform =>
['Non-EU', 'All'].some(region => region === platform.availability)
);
Expand Down

0 comments on commit 68f9f3f

Please sign in to comment.