Skip to content

Commit 820ff49

Browse files
authored
Merge pull request #6524 from blockchain/fix/2fa-redirect
fix/2fa-redirect: fix redirect to v5 for 2fa reset
2 parents 191bda5 + 7c16a5c commit 820ff49

File tree

1 file changed

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

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ const useFullPathForRedirect = [
125125
'/wallet/import-wallet',
126126
'/#/signup',
127127
'/#/help-exchange/',
128-
'help-exchange'
128+
'help-exchange',
129+
'/#/reset-2fa',
130+
'/reset-2fa.'
129131
]
130132

131133
const excludedProduction = [
@@ -183,7 +185,7 @@ const App = ({
183185
const optOutDateThreshold = new Date('2024-11-25T00:00:00.000Z') // cutoff date any user with reversion date before this will go to v5 Nov 22nd 2024
184186
const isOptOutDateAfterDateThreshold = optOutDataAsDateObject > optOutDateThreshold // if user's reversion date is after cutoff this is true, they will stay on v4
185187

186-
//if opted out and no opt out date add one
188+
// if opted out and no opt out date add one
187189
if (optOut && optOutDate === null)
188190
localStorage.setItem('opt_out_date', new Date().toISOString())
189191

0 commit comments

Comments
 (0)