Skip to content

Commit 8a187f8

Browse files
committed
updated naming
1 parent a2bf30d commit 8a187f8

1 file changed

Lines changed: 8 additions & 14 deletions

File tree

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

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,10 @@ const LotteryResults = () => {
9898

9999
const isWaitListLottery = listing.reviewOrderType === ReviewOrderTypeEnum.waitlistLottery
100100
const applications = totals?.find((total) => !total.multiselectQuestionId).total
101+
const isPruralText = listing?.unitsAvailable !== 1 ? "Plural" : ""
101102

102-
const resultsSubheaderWaitlist = t(
103-
`account.application.lottery.resultsSubheaderWaitlistLottery${
104-
listing?.unitsAvailable !== 1 ? "Plural" : ""
105-
}`,
103+
const resultsSubheaderWaitlistLottery = t(
104+
`account.application.lottery.resultsSubheaderWaitlistLottery${isPruralText}`,
106105
{
107106
applications,
108107
}
@@ -138,16 +137,11 @@ const LotteryResults = () => {
138137
</Heading>
139138
<p className="mt-4">
140139
{isWaitListLottery
141-
? resultsSubheaderWaitlist
142-
: t(
143-
`account.application.lottery.resultsSubheader${
144-
listing?.unitsAvailable !== 1 ? "Plural" : ""
145-
}`,
146-
{
147-
applications,
148-
units: listing?.unitsAvailable,
149-
}
150-
)}
140+
? resultsSubheaderWaitlistLottery
141+
: t(`account.application.lottery.resultsSubheader${isPruralText}`, {
142+
applications,
143+
units: listing?.unitsAvailable,
144+
})}
151145
</p>
152146
</Card.Section>
153147
<Card.Section

0 commit comments

Comments
 (0)