Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Konstantinos / Fix IP issue on Deriv go App platforms #5740

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/store/region-context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
Loading