diff --git a/editor.planx.uk/src/@planx/components/Pay/Editor/FeeBreakdownSection.tsx b/editor.planx.uk/src/@planx/components/Pay/Editor/FeeBreakdownSection.tsx index 9109276931..61b495a398 100644 --- a/editor.planx.uk/src/@planx/components/Pay/Editor/FeeBreakdownSection.tsx +++ b/editor.planx.uk/src/@planx/components/Pay/Editor/FeeBreakdownSection.tsx @@ -1,5 +1,5 @@ import ReceiptLongIcon from "@mui/icons-material/ReceiptLong"; -import { hasFeatureFlag } from 'lib/featureFlags'; +import { hasFeatureFlag } from "lib/featureFlags"; import React from "react"; import { FeaturePlaceholder } from "ui/editor/FeaturePlaceholder"; import ModalSection from "ui/editor/ModalSection"; diff --git a/editor.planx.uk/src/@planx/components/Pay/Public/FeeBreakdown/useFeeBreakdown.test.ts b/editor.planx.uk/src/@planx/components/Pay/Public/FeeBreakdown/useFeeBreakdown.test.ts index 6f4158028c..5312cb12c2 100644 --- a/editor.planx.uk/src/@planx/components/Pay/Public/FeeBreakdown/useFeeBreakdown.test.ts +++ b/editor.planx.uk/src/@planx/components/Pay/Public/FeeBreakdown/useFeeBreakdown.test.ts @@ -180,10 +180,10 @@ describe("useFeeBreakdown() hook", () => { const result = useFeeBreakdown(); - expect(result?.exemption).toEqual( + expect(result?.exemptions).toEqual( expect.not.arrayContaining(["someReason"]) ); - expect(result?.exemption).toEqual( + expect(result?.exemptions).toEqual( expect.not.arrayContaining(["someOtherReason"]) ); }); diff --git a/editor.planx.uk/src/pages/Pay/MakePayment.tsx b/editor.planx.uk/src/pages/Pay/MakePayment.tsx index 4c7a2b9954..f6b686dab3 100644 --- a/editor.planx.uk/src/pages/Pay/MakePayment.tsx +++ b/editor.planx.uk/src/pages/Pay/MakePayment.tsx @@ -232,8 +232,6 @@ export default function MakePayment({ showInviteToPay={false} hideFeeBanner={true} paymentStatus={payment?.state.status} - // TODO: Handle fee breakdown for ITP scenarios - showFeeBreakdown={false} /> )}