Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit 33f6b57

Browse files
author
Mohammadreza Ghorbani
committed
fix IM Footer
1 parent e8499e9 commit 33f6b57

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/javascript/app/common/country_base.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
const Client = require('../base/client');
2-
const State = require('../../_common/storage').State;
1+
const Client = require('../base/client');
2+
const State = require('../../_common/storage').State;
3+
const isEuCountrySelected = require('../../_common/utility').isEuCountrySelected;
34

45
// will return true for all clients with maltainvest/malta/iom financial/gaming landing company shortcode
56
// needs to wait for website_status, authorize, and landing_company before being called
67
// 'mt' is part of EU but account opening is not offered so the landing company response won't include the expected shortcode.
7-
// we will use the fallback eu_excluded_regex for them.
8+
// we will use the fallback eu_excluded_regex for tسhem.
89
const isEuCountry = () => {
910
const eu_shortcode_regex = new RegExp('^(maltainvest|malta|iom)$');
1011
const eu_excluded_regex = new RegExp('^mt$');
@@ -14,7 +15,7 @@ const isEuCountry = () => {
1415
return (
1516
(financial_shortcode || gaming_shortcode) ?
1617
(eu_shortcode_regex.test(financial_shortcode) || eu_shortcode_regex.test(gaming_shortcode)) :
17-
eu_excluded_regex.test(clients_country)
18+
eu_excluded_regex.test(clients_country) || isEuCountrySelected(clients_country)
1819
);
1920
};
2021

0 commit comments

Comments
 (0)