From cfed5b533d8c0fd1ee33efc7268807e4ec820589 Mon Sep 17 00:00:00 2001 From: Eric McGarry <46828798+mcgarrye@users.noreply.github.com> Date: Wed, 7 Aug 2024 15:48:15 -0400 Subject: [PATCH] fix: remove errant lottery copy (#4239) * fix: remove errant lottery copy * fix: correct tests --- sites/partners/__tests__/pages/listings/lottery.test.tsx | 2 -- sites/partners/src/pages/listings/[id]/lottery.tsx | 3 --- 2 files changed, 5 deletions(-) diff --git a/sites/partners/__tests__/pages/listings/lottery.test.tsx b/sites/partners/__tests__/pages/listings/lottery.test.tsx index b990121ad4..efabace179 100644 --- a/sites/partners/__tests__/pages/listings/lottery.test.tsx +++ b/sites/partners/__tests__/pages/listings/lottery.test.tsx @@ -424,7 +424,6 @@ describe("lottery", () => { expect(header).toBeInTheDocument() fireEvent.click(getByText("Run lottery")) - expect(getByText("This data will expire on", { exact: false })).toBeInTheDocument() expect(await findByText("Confirmation needed")).toBeInTheDocument() expect( getByText("Make sure to add all paper applications before running the lottery.") @@ -457,7 +456,6 @@ describe("lottery", () => { expect(header).toBeInTheDocument() fireEvent.click(getByText("Run lottery")) - expect(getByText("This data will expire on", { exact: false })).toBeInTheDocument() expect(await findByText("Confirmation needed")).toBeInTheDocument() expect(getByText("5 unresolved duplicate sets.")).toBeInTheDocument() expect(getByText("Run lottery without resolving duplicates")).toBeInTheDocument() diff --git a/sites/partners/src/pages/listings/[id]/lottery.tsx b/sites/partners/src/pages/listings/[id]/lottery.tsx index 32e2dea86a..b334d86af1 100644 --- a/sites/partners/src/pages/listings/[id]/lottery.tsx +++ b/sites/partners/src/pages/listings/[id]/lottery.tsx @@ -352,9 +352,6 @@ const Lottery = (props: { listing: Listing }) => { {t("applications.addConfirmModalHeader")} - {process.env.lotteryDaysTillExpiry ? ( -

{t("listings.lottery.dialogAlert", { date: formattedExpiryDate })}

- ) : undefined} {duplicatesExist ? (

{t("listings.lottery.duplicateContent")}{" "}