diff --git a/app/javascript/__tests__/modules/listingDetailsLottery/__snapshots__/ListingDetailsLotteryPreferencesEducator.test.tsx.snap b/app/javascript/__tests__/modules/listingDetailsLottery/__snapshots__/ListingDetailsLotteryPreferencesEducator.test.tsx.snap index f728dc02bc..689b2e6e49 100644 --- a/app/javascript/__tests__/modules/listingDetailsLottery/__snapshots__/ListingDetailsLotteryPreferencesEducator.test.tsx.snap +++ b/app/javascript/__tests__/modules/listingDetailsLottery/__snapshots__/ListingDetailsLotteryPreferencesEducator.test.tsx.snap @@ -340,38 +340,33 @@ exports[`ListingDetailsLotteryPreferencesEducatory displays 2 preferences - NRHP
+ Up to 1 unit +
++ 2 applicants are on this list. +
+- Any remaining units -
-- 2 applicants are on this list. Please note, preference holders will be considered for all units first. -
-+ Up to 1 unit +
++ 2 applicants are on this list. +
+- Any remaining units -
-- 2 applicants are on this list. Please note, preference holders will be considered for all units first. -
-{t("lottery.upToXUnitsAvailable", unitsAvailable)}
{numVeteranApps > 0 ? ( @@ -86,13 +88,14 @@ const LotteryBucketsContent = ({ // from the preference short code by adding in the 'V-' // e.g. The number of veteran applications for 'T1-COP' are stored in veteranAppsByBucketMap // under the key 'T1-V-COP', so we insert 'V-' using replace to get the veteran preference short code - const veteransPreferenceShortCode = bucket.preferenceShortCode.startsWith("T") + const veteransPreferenceShortCode = bucket.preferenceShortCode?.startsWith("T") ? bucket.preferenceShortCode.replace("-", "-V-") - : `V-${bucket.preferenceShortCode}` + : `V-${bucket.preferenceShortCode}` // may be 'V-null' if preferenceShortCode does not exist, which will not affect numVeteranApps const numVeteranApps = veteranAppsByBucketMap[veteransPreferenceShortCode] ?? 0 return ({t("lottery.anyRemainingUnits")}
-- {t("lottery.numberApplicantsQualifiedForGeneralPool", bucket.totalSubmittedApps)} -
-