Skip to content

Commit

Permalink
Aizad/Chore: filter platforms for autralia (#8440)
Browse files Browse the repository at this point in the history
* chore: filter platforms for autralia

* fix: page not displaying error accordingly

---------

Co-authored-by: amina-deriv <84661147+amina-deriv@users.noreply.github.com>
  • Loading branch information
aizad-deriv and amina-deriv committed May 30, 2023
1 parent 6d49b93 commit bed9c1f
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

1 comment on commit bed9c1f

@vercel
Copy link

@vercel vercel bot commented on bed9c1f May 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

deriv-app – ./

binary.sx
deriv-app-git-master.binary.sx
deriv-app.vercel.app
deriv-app.binary.sx

Please sign in to comment.