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) }