Skip to content

Commit 6be4d65

Browse files
committed
fixed issue with plural form removed non needed var
1 parent 3802130 commit 6be4d65

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

sites/public/src/pages/account/application/[id]/lottery-results.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,11 @@ const LotteryResults = () => {
9090
</Card.Section>
9191
)
9292
}
93-
const isWaitListLottery = listing?.reviewOrderType === ReviewOrderTypeEnum.waitlistLottery
94-
const lotteryResultHeaderText = isWaitListLottery
95-
? t("account.application.lottery.resultsHeaderWaitlistLoterry")
96-
: t("account.application.lottery.resultsHeader")
93+
94+
const lotteryResultHeaderText =
95+
listing?.reviewOrderType === ReviewOrderTypeEnum.waitlistLottery
96+
? t("account.application.lottery.resultsHeaderWaitlistLoterry")
97+
: t("account.application.lottery.resultsHeader")
9798

9899
const applications = totals?.find((total) => !total.multiselectQuestionId).total
99100

@@ -133,7 +134,7 @@ const LotteryResults = () => {
133134
{lotteryResultHeaderText}
134135
</Heading>
135136
<p className="mt-4">
136-
{isWaitListLottery
137+
{listing?.reviewOrderType === ReviewOrderTypeEnum.waitlistLottery
137138
? resultsSubheaderWaitlistLottery
138139
: t(
139140
`account.application.lottery.resultsSubheader${

0 commit comments

Comments
 (0)