Skip to content

Commit

Permalink
Merge pull request #6502 from blockchain/fix/prove-exclusion
Browse files Browse the repository at this point in the history
fix(prove): fix exclusion path for prove
  • Loading branch information
mperdomo-bc authored Oct 28, 2024
2 parents eede067 + e2d4fee commit 17ae1a8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/blockchain-wallet-v4-frontend/src/scenes/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ const excludedStaging = [
// '/#/verify-email',
'/#/login?product=exchange',
'/wallet-options-v4.json',
'/#/prove',
// '/#/reset-two-factor'
// '/#/open',
'/login?product=wallet&platform=ios',
Expand Down Expand Up @@ -256,11 +255,8 @@ const App = ({
}

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

0 comments on commit 17ae1a8

Please sign in to comment.