Skip to content

Commit cbe6561

Browse files
authored
Merge pull request #110 from Bostads-AB-Mimer/feature/uth-251-update-onecore-types-version-frontend
fix typo in residentialAreaCaption
2 parents 739b322 + 8e5d440 commit cbe6561

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/frontend/src/pages/ParkingSpaces/components/create-applicant-for-listing/CreateApplicantForListing.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export const CreateApplicantForListing = (props: Props) => {
5151

5252
const tenantQuery = useTenantWithValidation(
5353
selectedContact?.contactCode,
54-
props.listing.rentalObject.restidentalAreaCode,
54+
props.listing.rentalObject.residentialAreaCode,
5555
props.listing.rentalObjectCode
5656
)
5757

@@ -297,10 +297,10 @@ function tenantHasValidContractForTheDiscrict(
297297
) {
298298
const hasUpComingContractInThisDistrict =
299299
tenant.upcomingHousingContract?.residentialArea?.code ===
300-
listing.rentalObject.restidentalAreaCode
300+
listing.rentalObject.residentialAreaCode
301301
const hasCurrentContractInThisDistrict =
302302
tenant.currentHousingContract?.residentialArea?.code ===
303-
listing.rentalObject.restidentalAreaCode
303+
listing.rentalObject.residentialAreaCode
304304

305305
return hasCurrentContractInThisDistrict || hasUpComingContractInThisDistrict
306306
}

0 commit comments

Comments
 (0)