From 8dd860a0ef02d931f4aa4b3a98f2f8ed6431be61 Mon Sep 17 00:00:00 2001 From: konstantinosG-deriv <104083272+konstantinosG-deriv@users.noreply.github.com> Date: Fri, 20 Oct 2023 14:15:11 +0200 Subject: [PATCH] Konstantinos / Fix IP issue on Deriv go App platforms (#5740) * fix: check ip too * fix: add user ip in if statement --------- Co-authored-by: Konstantinos-Gk --- src/store/region-context.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/store/region-context.tsx b/src/store/region-context.tsx index 9a2dfa2f579..237354654f8 100644 --- a/src/store/region-context.tsx +++ b/src/store/region-context.tsx @@ -92,14 +92,14 @@ export const RegionProvider = ({ children }: RegionProviderProps) => { const { clients_country, p2p_config } = website_status const p2p_cookie = getP2PCookie() setP2P(p2p_cookie, p2p_config) - if (qa_url_region) { - not_available_appgallery_countries.includes(qa_url_region) + if (qa_url_region || user_ip_country) { + not_available_appgallery_countries.includes(qa_url_region || user_ip_country) ? setAppgallerySupported(false) : setAppgallerySupported(true) - not_avalable_appgallery_and_ios_countries.includes(qa_url_region) + not_avalable_appgallery_and_ios_countries.includes(qa_url_region || user_ip_country) ? setAppgalleryIosSupported(false) : setAppgalleryIosSupported(true) - not_available_iOS_countries.includes(qa_url_region) + not_available_iOS_countries.includes(qa_url_region || user_ip_country) ? setIosSupported(false) : setIosSupported(true) }