Skip to content

Commit

Permalink
Merge pull request #6524 from blockchain/fix/2fa-redirect
Browse files Browse the repository at this point in the history
fix/2fa-redirect: fix redirect to v5 for 2fa reset
  • Loading branch information
jhagerman-bc authored Dec 3, 2024
2 parents 191bda5 + 7c16a5c commit 820ff49
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/blockchain-wallet-v4-frontend/src/scenes/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ const useFullPathForRedirect = [
'/wallet/import-wallet',
'/#/signup',
'/#/help-exchange/',
'help-exchange'
'help-exchange',
'/#/reset-2fa',
'/reset-2fa.'
]

const excludedProduction = [
Expand Down Expand Up @@ -183,7 +185,7 @@ const App = ({
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
const isOptOutDateAfterDateThreshold = optOutDataAsDateObject > optOutDateThreshold // if user's reversion date is after cutoff this is true, they will stay on v4

//if opted out and no opt out date add one
// if opted out and no opt out date add one
if (optOut && optOutDate === null)
localStorage.setItem('opt_out_date', new Date().toISOString())

Expand Down

0 comments on commit 820ff49

Please sign in to comment.