From 0c0667707db63fc9aa47c38207c6e1cd784f8112 Mon Sep 17 00:00:00 2001 From: ColinBuyck Date: Mon, 2 Dec 2024 13:40:33 -0500 Subject: [PATCH] fix: check for limited juris role --- sites/partners/src/pages/listings/[id]/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sites/partners/src/pages/listings/[id]/index.tsx b/sites/partners/src/pages/listings/[id]/index.tsx index 4e3c325644..b63e323b10 100644 --- a/sites/partners/src/pages/listings/[id]/index.tsx +++ b/sites/partners/src/pages/listings/[id]/index.tsx @@ -73,7 +73,8 @@ export default function ListingDetail(props: ListingProps) { lotteryLabel: listing.status === ListingsStatusEnum.closed && listing?.lotteryOptIn && - listing?.reviewOrderType === ReviewOrderTypeEnum.lottery + listing?.reviewOrderType === ReviewOrderTypeEnum.lottery && + !profile?.userRoles?.isLimitedJurisdictionalAdmin ? t("listings.lotteryTitle") : undefined, }}