Renter can now see owner's pre rental condition

This commit is contained in:
jackiettran
2026-01-02 17:39:45 -05:00
parent 4209dcc8fc
commit b89a0e3de7

View File

@@ -176,7 +176,8 @@ const Renting: React.FC = () => {
return conditionChecks.filter( return conditionChecks.filter(
(check) => (check) =>
check.rentalId === rentalId && check.rentalId === rentalId &&
(check.checkType === "rental_start_renter" || (check.checkType === "pre_rental_owner" ||
check.checkType === "rental_start_renter" ||
check.checkType === "rental_end_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" className="btn btn-link text-success small p-0 text-decoration-none d-block"
onClick={() => handleViewConditionCheck(check)} 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 Start Condition Noted"
: "Rental End Condition Noted"} : "Rental End Condition Noted"}
<small className="text-muted ms-2"> <small className="text-muted ms-2">