Skip to content

Commit

Permalink
Merge pull request #1432 from guardian/remove-canada-strike-message
Browse files Browse the repository at this point in the history
Remove Canada post strike message from account overview
  • Loading branch information
rBangay authored Dec 20, 2024
2 parents 6162a6f + 863ab32 commit fb1e4fe
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 fb1e4fe

Please sign in to comment.