Skip to content

Commit

Permalink
fix: remove errant lottery copy (#4239)
Browse files Browse the repository at this point in the history
* fix: remove errant lottery copy

* fix: correct tests
  • Loading branch information
mcgarrye authored Aug 7, 2024
1 parent 5930e3d commit cfed5b5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions sites/partners/__tests__/pages/listings/lottery.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down Expand Up @@ -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()
Expand Down
3 changes: 0 additions & 3 deletions sites/partners/src/pages/listings/[id]/lottery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,6 @@ const Lottery = (props: { listing: Listing }) => {
{t("applications.addConfirmModalHeader")}
</Dialog.Header>
<Dialog.Content id="run-lottery-modal-content">
{process.env.lotteryDaysTillExpiry ? (
<p>{t("listings.lottery.dialogAlert", { date: formattedExpiryDate })}</p>
) : undefined}
{duplicatesExist ? (
<p>
{t("listings.lottery.duplicateContent")}{" "}
Expand Down

0 comments on commit cfed5b5

Please sign in to comment.