Skip to content

Commit 98ff46d

Browse files
committed
null check fix
1 parent f22e970 commit 98ff46d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/property-base/src/adapters/parking-spaces-adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export async function getParkingSpaceByRentalPropertyId(
6868
})
6969

7070
// Don't return anything if no parking space is found in the data..
71-
if (propertyStructureResponse?.parkingSpace === null) return null
71+
if (!propertyStructureResponse?.parkingSpace) return null
7272

7373
// Fetch the address associated with the parking space
7474
const addressResponse = await prisma.address.findFirst({

0 commit comments

Comments
 (0)