File tree Expand file tree Collapse file tree
sites/public/src/pages/account/application/[id] Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments