Skip to content

Commit

Permalink
update env check
Browse files Browse the repository at this point in the history
  • Loading branch information
jhagerman-bc committed Aug 14, 2024
1 parent 8478bd3 commit 07051ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/blockchain-wallet-v4-frontend/src/scenes/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ const App = ({
fullPath = `/${pathSegments.join('/')}`
}

const environment = window.location.host === 'login.blockchain.com' ? 'PRODUCTION' : 'STAGING'
const useStaging = process.env.app_env_local === 'staging'

const useFullPathForRedirect = [
'/#/authorize-approve',
Expand Down Expand Up @@ -220,7 +220,7 @@ const App = ({

// IF ANY PATHS MATCH THE EXCLUSIONS, RENDER THE APP.
if (
(environment === 'PRODUCTION' ? excludedProduction : excludedStaging).some((prefix) => {
(useStaging ? excludedStaging : excludedProduction).some((prefix) => {
return fullPath.startsWith(prefix)
})
) {
Expand Down

0 comments on commit 07051ff

Please sign in to comment.