From b89a0e3de7d7daa038c521cf8a5c3b4817235483 Mon Sep 17 00:00:00 2001 From: jackiettran <41605212+jackiettran@users.noreply.github.com> Date: Fri, 2 Jan 2026 17:39:45 -0500 Subject: [PATCH] Renter can now see owner's pre rental condition --- frontend/src/pages/Renting.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/Renting.tsx b/frontend/src/pages/Renting.tsx index 7f21538..ee12635 100644 --- a/frontend/src/pages/Renting.tsx +++ b/frontend/src/pages/Renting.tsx @@ -176,7 +176,8 @@ const Renting: React.FC = () => { return conditionChecks.filter( (check) => check.rentalId === rentalId && - (check.checkType === "rental_start_renter" || + (check.checkType === "pre_rental_owner" || + check.checkType === "rental_start_renter" || check.checkType === "rental_end_renter") ); }; @@ -394,7 +395,9 @@ const Renting: React.FC = () => { className="btn btn-link text-success small p-0 text-decoration-none d-block" onClick={() => handleViewConditionCheck(check)} > - {check.checkType === "rental_start_renter" + {check.checkType === "pre_rental_owner" + ? "Owner's Pre-Rental Condition" + : check.checkType === "rental_start_renter" ? "Rental Start Condition Noted" : "Rental End Condition Noted"}