Skip to content

Commit 7d0f965

Browse files
millordludtkemorgan
authored andcommitted
feat: waitlist lottery - listing detail page states update (bloom-housing#5575)
show waitlist open when listing type is waitlist lottery
1 parent 0bca6d0 commit 7d0f965

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

sites/public/src/components/listing/ListingView.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,11 +529,15 @@ export const ListingView = (props: ListingProps) => {
529529
return (
530530
<QuantityRowSection
531531
quantityRows={
532-
listing.reviewOrderType === ReviewOrderTypeEnum.waitlist ? waitlistRow : unitRow
532+
listing.reviewOrderType === ReviewOrderTypeEnum.waitlist ||
533+
listing.reviewOrderType === ReviewOrderTypeEnum.waitlistLottery
534+
? waitlistRow
535+
: unitRow
533536
}
534537
strings={{
535538
sectionTitle:
536-
listing.reviewOrderType === ReviewOrderTypeEnum.waitlist
539+
listing.reviewOrderType === ReviewOrderTypeEnum.waitlist ||
540+
listing.reviewOrderType === ReviewOrderTypeEnum.waitlistLottery
537541
? t("listings.waitlist.isOpen")
538542
: t("listings.vacantUnitsAvailable"),
539543
description: description(),

sites/public/src/components/listing/listing_sections/Availability.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ export const Availability = ({ listing, jurisdiction }: AvailabilityProps) => {
246246
case ReviewOrderTypeEnum.lottery:
247247
return [lotteryContent]
248248
case ReviewOrderTypeEnum.waitlist:
249+
case ReviewOrderTypeEnum.waitlistLottery:
249250
return [waitlistContent]
250251
default:
251252
return [fcfsContent]

0 commit comments

Comments
 (0)