Skip to content

Commit f2c3732

Browse files
committed
remove opt out date if redirecting
1 parent d23aa11 commit f2c3732

File tree

1 file changed

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

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,8 @@ const App = ({
236236
} else {
237237
const redirectUrl = removeHash(fullPath)
238238
if (optOut) localStorage.removeItem('opt_out_wallet_v5_ui') // go ahead remove opt_out key
239+
if (optOutDate) localStorage.removeItem('opt_out_date') // remove user's old opt out date
240+
239241
// eslint-disable-next-line
240242
console.log('xx', 'Redirecting to v5', redirectUrl)
241243
// Using **WALLET_V5_LINK** as a fallback for webpack builder.

0 commit comments

Comments
 (0)