diff --git a/editor.planx.uk/src/@planx/components/Pay/Public/FeeBreakdown/FeeBreakdown.tsx b/editor.planx.uk/src/@planx/components/Pay/Public/FeeBreakdown/FeeBreakdown.tsx index f0062d03e7..8298e553c6 100644 --- a/editor.planx.uk/src/@planx/components/Pay/Public/FeeBreakdown/FeeBreakdown.tsx +++ b/editor.planx.uk/src/@planx/components/Pay/Public/FeeBreakdown/FeeBreakdown.tsx @@ -7,7 +7,6 @@ import TableContainer from "@mui/material/TableContainer"; import TableHead from "@mui/material/TableHead"; import TableRow from "@mui/material/TableRow"; import Typography from "@mui/material/Typography"; -import { hasFeatureFlag } from "lib/featureFlags"; import React from "react"; import { FONT_WEIGHT_SEMI_BOLD } from "theme"; @@ -91,8 +90,6 @@ export const FeeBreakdown: React.FC = () => { const breakdown = useFeeBreakdown(); if (!breakdown) return null; - if (!hasFeatureFlag("FEE_BREAKDOWN")) return null; - return ( diff --git a/editor.planx.uk/src/@planx/components/Pay/Public/Pay.test.tsx b/editor.planx.uk/src/@planx/components/Pay/Public/Pay.test.tsx index 71e43ed2d5..0391100764 100644 --- a/editor.planx.uk/src/@planx/components/Pay/Public/Pay.test.tsx +++ b/editor.planx.uk/src/@planx/components/Pay/Public/Pay.test.tsx @@ -1,7 +1,6 @@ import { PaymentStatus } from "@opensystemslab/planx-core/types"; import { ComponentType as TYPES } from "@opensystemslab/planx-core/types"; import { screen } from "@testing-library/react"; -import { hasFeatureFlag } from "lib/featureFlags"; import { FullStore, Store, useStore } from "pages/FlowEditor/lib/store"; import React from "react"; import { act } from "react-dom/test-utils"; @@ -9,7 +8,6 @@ import * as ReactNavi from "react-navi"; import { setup } from "testUtils"; import { ApplicationPath, Breadcrumbs } from "types"; import { vi } from "vitest"; -import { Mock } from "vitest"; import { axe } from "vitest-axe"; import Confirm, { Props } from "./Confirm"; @@ -27,8 +25,6 @@ vi.mock("lib/featureFlags", () => ({ hasFeatureFlag: vi.fn(), })); -const mockHasFeatureFlag = hasFeatureFlag as Mock; - const resumeButtonText = "Resume an application you have already started"; const saveButtonText = "Save and return to this application later";