This repository was archived by the owner on Feb 22, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/javascript/app/common Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 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 ;
3
4
4
5
// will return true for all clients with maltainvest/malta/iom financial/gaming landing company shortcode
5
6
// needs to wait for website_status, authorize, and landing_company before being called
6
7
// '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 .
8
9
const isEuCountry = ( ) => {
9
10
const eu_shortcode_regex = new RegExp ( '^(maltainvest|malta|iom)$' ) ;
10
11
const eu_excluded_regex = new RegExp ( '^mt$' ) ;
@@ -14,7 +15,7 @@ const isEuCountry = () => {
14
15
return (
15
16
( financial_shortcode || gaming_shortcode ) ?
16
17
( 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 )
18
19
) ;
19
20
} ;
20
21
You can’t perform that action at this time.
0 commit comments