diff --git a/src/subscriptions/Subscriptions.jsx b/src/subscriptions/Subscriptions.jsx index ef777f4f..1d3b71b8 100644 --- a/src/subscriptions/Subscriptions.jsx +++ b/src/subscriptions/Subscriptions.jsx @@ -10,7 +10,7 @@ import { BasicAlert } from '../components'; import SubscriptionCardsView from './SubscriptionCardsView'; import SubscriptionUpsell from './SubscriptionUpsell'; -import { clearStripeError, fetchStripeCustomerPortalURL } from './actions'; +import { clearStripeError } from './actions'; import { subscriptionsSelector } from './selectors'; import messages from './Subscriptions.messages'; @@ -20,7 +20,6 @@ const Subscriptions = () => { const dispatch = useDispatch(); const { subscriptions, - stripeCustomerPortalURL, stripeError, stripeLoading, } = useSelector(subscriptionsSelector); @@ -39,21 +38,10 @@ const Subscriptions = () => { messages['ecommerce.order.history.subscriptions.manage.button'], ); - const handleManageSubscriptionsClick = () => { - sendTrackEvent('edx.bi.user.subscription.order-page.manage.clicked'); - dispatch(fetchStripeCustomerPortalURL()); - }; - const handeAlertClose = () => { dispatch(clearStripeError()); }; - useEffect(() => { - if (stripeCustomerPortalURL) { - window.open(stripeCustomerPortalURL, '_blank', 'noopener,noreferrer'); - } - }, [stripeCustomerPortalURL]); - const renderSpinner = () => (