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

Commit

Permalink
Konstantinos / Fix IP issue on Deriv go App platforms (#5740)
Browse files Browse the repository at this point in the history
* fix: check ip too

* fix: add user ip in if statement

---------

Co-authored-by: Konstantinos-Gk <[email protected]>
  • Loading branch information
konstantinosG-deriv and Konstantinos-Gk authored Oct 20, 2023
1 parent 4639889 commit 8dd860a
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit 8dd860a

Please sign in to comment.