Skip to content

Commit

Permalink
remove the temporary Canada post strike message from the account over…
Browse files Browse the repository at this point in the history
…view
  • Loading branch information
Richard Bangay committed Dec 19, 2024
1 parent 6162a6f commit 863ab32
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 51 deletions.
14 changes: 0 additions & 14 deletions client/components/mma/accountoverview/AccountOverview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ import type { IsFromAppProps } from '../shared/IsFromAppProps';
import { NewspaperArchiveCta } from '../shared/NewspaperArchiveCta';
import { nonServiceableCountries } from '../shared/NonServiceableCountries';
import { PaymentFailureAlertIfApplicable } from '../shared/PaymentFailureAlertIfApplicable';
import { CanadaStrike } from './CanadaStrike';
import { CancelledProductCard } from './CancelledProductCard';
import { EmptyAccountOverview } from './EmptyAccountOverview';
import { InAppPurchaseCard } from './InAppPurchaseCard';
Expand Down Expand Up @@ -198,18 +197,6 @@ const AccountOverviewPage = ({ isFromApp }: IsFromAppProps) => {
return specificProductType.groupedProductType;
};

const possiblyAffectedByCanadaPostStrike = allActiveProductDetails.some(
(product) => {
const deliveryCountry =
product.subscription.deliveryAddress?.country.toUpperCase();
return (
(product.tier === 'Tier Three' ||
product.tier === 'Guardian Weekly - ROW') &&
(deliveryCountry === 'CANADA' || deliveryCountry === 'CA')
);
},
);

return (
<>
<PersonalisedHeader
Expand All @@ -221,7 +208,6 @@ const AccountOverviewPage = ({ isFromApp }: IsFromAppProps) => {
productDetails={allActiveProductDetails}
isFromApp={isFromApp}
/>
{possiblyAffectedByCanadaPostStrike && <CanadaStrike />}
{uniqueProductCategories.map((category) => {
const groupedProductType = GROUPED_PRODUCT_TYPES[category];
const activeProductsInCategory = allActiveProductDetails.filter(
Expand Down
37 changes: 0 additions & 37 deletions client/components/mma/accountoverview/CanadaStrike.tsx

This file was deleted.

0 comments on commit 863ab32

Please sign in to comment.