From b9259515a19a648cca693d5cba66fbdc7c3a3727 Mon Sep 17 00:00:00 2001 From: Rupato Date: Wed, 4 Dec 2024 11:11:32 +0800 Subject: [PATCH 1/2] fix: handle errors for EU region --- src/components/layout/header/utils/index.js | 60 ++++++++++----------- src/stores/app-store.ts | 1 + 2 files changed, 31 insertions(+), 30 deletions(-) diff --git a/src/components/layout/header/utils/index.js b/src/components/layout/header/utils/index.js index 63fd1b16..a088b0ed 100644 --- a/src/components/layout/header/utils/index.js +++ b/src/components/layout/header/utils/index.js @@ -3,36 +3,36 @@ import { api_base } from '@/external/bot-skeleton'; export const BOT_RESTRICTED_COUNTRIES_LIST = () => ({ au: 'Australian', sg: 'Singaporean', - it: 'Italian', - de: 'German', - fr: 'French', - lu: 'Luxembourgish', - gr: 'Greek', - mf: 'Saint Martiner', - es: 'Spanish', - sk: 'Slovak', - lt: 'Lithuanian', - nl: 'Dutch', - at: 'Austrian', - bg: 'Bulgarian', - si: 'Slovenian', - cy: 'Cypriot', - be: 'Belgian', - ro: 'Romanian', - hr: 'Croatian', - pt: 'Portuguese', - pl: 'Polish', - lv: 'Latvian', - ee: 'Estonian', - cz: 'Czech', - fi: 'Finnish', - hu: 'Hungarian', - dk: 'Danish', - se: 'Swedish', - ie: 'Irish', - im: 'Manx', - gb: 'British', - mt: 'Malta', + // it: 'Italian', + // de: 'German', + // fr: 'French', + // lu: 'Luxembourgish', + // gr: 'Greek', + // mf: 'Saint Martiner', + // es: 'Spanish', + // sk: 'Slovak', + // lt: 'Lithuanian', + // nl: 'Dutch', + // at: 'Austrian', + // bg: 'Bulgarian', + // si: 'Slovenian', + // cy: 'Cypriot', + // be: 'Belgian', + // ro: 'Romanian', + // hr: 'Croatian', + // pt: 'Portuguese', + // pl: 'Polish', + // lv: 'Latvian', + // ee: 'Estonian', + // cz: 'Czech', + // fi: 'Finnish', + // hu: 'Hungarian', + // dk: 'Danish', + // se: 'Swedish', + // ie: 'Irish', + // im: 'Manx', + // gb: 'British', + // mt: 'Malta', }); export const LOW_RISK_COUNTRIES = () => ['za', 'ec', 'bw']; diff --git a/src/stores/app-store.ts b/src/stores/app-store.ts index a58f82c0..d5060924 100644 --- a/src/stores/app-store.ts +++ b/src/stores/app-store.ts @@ -83,6 +83,7 @@ export default class AppStore { handleErrorForEu = () => { const { client, common } = this.core; + return false; if (!client?.is_logged_in && client?.is_eu_country) { this.throwErrorForExceptionCountries(client?.clients_country as string); return showDigitalOptionsUnavailableError(common.showError, this.getErrorForEuClients()); From b42e3cb60e6f386c0c2b9c47deeaae6c3debd11e Mon Sep 17 00:00:00 2001 From: Rupato Date: Wed, 4 Dec 2024 12:02:49 +0800 Subject: [PATCH 2/2] fix: handle errors for EU region --- src/components/layout/header/utils/index.js | 60 ++++++++++----------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/src/components/layout/header/utils/index.js b/src/components/layout/header/utils/index.js index a088b0ed..63fd1b16 100644 --- a/src/components/layout/header/utils/index.js +++ b/src/components/layout/header/utils/index.js @@ -3,36 +3,36 @@ import { api_base } from '@/external/bot-skeleton'; export const BOT_RESTRICTED_COUNTRIES_LIST = () => ({ au: 'Australian', sg: 'Singaporean', - // it: 'Italian', - // de: 'German', - // fr: 'French', - // lu: 'Luxembourgish', - // gr: 'Greek', - // mf: 'Saint Martiner', - // es: 'Spanish', - // sk: 'Slovak', - // lt: 'Lithuanian', - // nl: 'Dutch', - // at: 'Austrian', - // bg: 'Bulgarian', - // si: 'Slovenian', - // cy: 'Cypriot', - // be: 'Belgian', - // ro: 'Romanian', - // hr: 'Croatian', - // pt: 'Portuguese', - // pl: 'Polish', - // lv: 'Latvian', - // ee: 'Estonian', - // cz: 'Czech', - // fi: 'Finnish', - // hu: 'Hungarian', - // dk: 'Danish', - // se: 'Swedish', - // ie: 'Irish', - // im: 'Manx', - // gb: 'British', - // mt: 'Malta', + it: 'Italian', + de: 'German', + fr: 'French', + lu: 'Luxembourgish', + gr: 'Greek', + mf: 'Saint Martiner', + es: 'Spanish', + sk: 'Slovak', + lt: 'Lithuanian', + nl: 'Dutch', + at: 'Austrian', + bg: 'Bulgarian', + si: 'Slovenian', + cy: 'Cypriot', + be: 'Belgian', + ro: 'Romanian', + hr: 'Croatian', + pt: 'Portuguese', + pl: 'Polish', + lv: 'Latvian', + ee: 'Estonian', + cz: 'Czech', + fi: 'Finnish', + hu: 'Hungarian', + dk: 'Danish', + se: 'Swedish', + ie: 'Irish', + im: 'Manx', + gb: 'British', + mt: 'Malta', }); export const LOW_RISK_COUNTRIES = () => ['za', 'ec', 'bw'];