Skip to content

Commit

Permalink
fix: check for limited juris role
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinBuyck committed Dec 2, 2024
1 parent 83d34cc commit 0c06677
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sites/partners/src/pages/listings/[id]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}}
Expand Down

0 comments on commit 0c06677

Please sign in to comment.