diff --git a/sites/public/src/components/listing/ListingView.tsx b/sites/public/src/components/listing/ListingView.tsx index c6282baeb2..8c53c7f680 100644 --- a/sites/public/src/components/listing/ListingView.tsx +++ b/sites/public/src/components/listing/ListingView.tsx @@ -354,6 +354,12 @@ export const ListingView = (props: ListingProps) => { const redirectIfSignedOut = () => process.env.showMandatedAccounts && initialStateLoaded && !profile + const submissionAddressExists = + listing.listingsApplicationMailingAddress || + listing.applicationMailingAddressType === ApplicationAddressTypeEnum.leasingAgent || + listing.listingsApplicationDropOffAddress || + listing.applicationDropOffAddressType === ApplicationAddressTypeEnum.leasingAgent + const applySidebar = () => ( <> { listingId={listing.id} listingStatus={listing.status} /> - {!( - listing.status === ListingsStatusEnum.closed || - !(listing.listingsApplicationMailingAddress || listing.listingsApplicationDropOffAddress) - ) && ( + {listing.status !== ListingsStatusEnum.closed && submissionAddressExists && (