From a6766f514db63ea17200e412c13409ae6df03106 Mon Sep 17 00:00:00 2001 From: ColinBuyck Date: Mon, 10 Jun 2024 15:56:39 -0700 Subject: [PATCH] fix: add preview check --- sites/public/src/components/listing/ListingView.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sites/public/src/components/listing/ListingView.tsx b/sites/public/src/components/listing/ListingView.tsx index c6282baeb2..f46f663787 100644 --- a/sites/public/src/components/listing/ListingView.tsx +++ b/sites/public/src/components/listing/ListingView.tsx @@ -626,7 +626,7 @@ export const ListingView = (props: ListingProps) => { {!applicationsClosed && getWaitlist()} {hasNonReferralMethods && !applicationsClosed && - listing.status !== ListingsStatusEnum.closed ? ( + (listing.status !== ListingsStatusEnum.closed || props.preview) ? ( <>{applySidebar()} ) : ( <> @@ -784,7 +784,7 @@ export const ListingView = (props: ListingProps) => { {!applicationsClosed && getWaitlist()} {hasNonReferralMethods && !applicationsClosed && - listing.status !== ListingsStatusEnum.closed && + (listing.status !== ListingsStatusEnum.closed || props.preview) && applySidebar()} {listing?.referralApplication && (