Renter can now see owner's pre rental condition
This commit is contained in:
@@ -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"}
|
||||
<small className="text-muted ms-2">
|
||||
|
||||
Reference in New Issue
Block a user