Skip to content

Commit 17ae1a8

Browse files
authored
Merge pull request #6502 from blockchain/fix/prove-exclusion
fix(prove): fix exclusion path for prove
2 parents eede067 + e2d4fee commit 17ae1a8

File tree

1 file changed

+2
-6
lines changed
  • packages/blockchain-wallet-v4-frontend/src/scenes

1 file changed

+2
-6
lines changed

packages/blockchain-wallet-v4-frontend/src/scenes/app.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ const excludedStaging = [
153153
// '/#/verify-email',
154154
'/#/login?product=exchange',
155155
'/wallet-options-v4.json',
156-
'/#/prove',
157156
// '/#/reset-two-factor'
158157
// '/#/open',
159158
'/login?product=wallet&platform=ios',
@@ -256,11 +255,8 @@ const App = ({
256255
}
257256

258257
// IF ANY PATHS MATCH THE EXCLUSIONS, RENDER THE APP.
259-
if (
260-
(useStaging ? excludedStaging : excludedProduction).some((prefix) => {
261-
return fullPath.startsWith(prefix)
262-
})
263-
) {
258+
const exclusionPaths = useStaging ? excludedStaging : excludedProduction
259+
if (exclusionPaths.some((prefix) => fullPath.startsWith(prefix))) {
264260
setDynamicRoutingState(false)
265261
return
266262
}

0 commit comments

Comments
 (0)