From 000617034a6ba1f7a03158c3f37daf42cad9ea4a Mon Sep 17 00:00:00 2001 From: mrodriguez-bc Date: Fri, 26 Jan 2024 08:12:18 -0500 Subject: [PATCH] feat(sofi-referral): remove migration handler --- .../src/scenes/Refer/Sofi/index.tsx | 24 ++++--------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/packages/blockchain-wallet-v4-frontend/src/scenes/Refer/Sofi/index.tsx b/packages/blockchain-wallet-v4-frontend/src/scenes/Refer/Sofi/index.tsx index 52b231b4d9c..0eb400e83f0 100644 --- a/packages/blockchain-wallet-v4-frontend/src/scenes/Refer/Sofi/index.tsx +++ b/packages/blockchain-wallet-v4-frontend/src/scenes/Refer/Sofi/index.tsx @@ -3,27 +3,11 @@ import { Redirect, RouteComponentProps } from 'react-router-dom' const SofiReferralComponent: React.FC = ({ location }) => { const searchParams = new URLSearchParams(location.search) - const hasAllRequiredJwtParams = ['aesCiphertext', 'aesIV', 'aesTag', 'aesKeyCiphertext'].every( - (param) => searchParams.has(param) - ) + const viewParam = searchParams.get('buy') + const queryString = viewParam ? `?code=${viewParam}` : '?ref=sofi' + const redirectTo = `https://blockchainwallet.page.link/buysofi${queryString}` - let redirectTo = '' - let queryString = '' - - if (hasAllRequiredJwtParams) { - redirectTo = '/sofi' - queryString = location.search - } else { - redirectTo = 'https://blockchainwallet.page.link/buysofi' - const viewParam = searchParams.get('buy') - if (viewParam) { - queryString = `?code=${viewParam}` - } else { - queryString = '?ref=sofi' - } - } - - return + return } export default SofiReferralComponent