changed field from availability to isAvailable

This commit is contained in:
jackiettran
2025-11-24 17:36:18 -05:00
parent bb16d659bd
commit 42a5412582
10 changed files with 19 additions and 19 deletions

View File

@@ -633,7 +633,7 @@ const ItemDetail: React.FC = () => {
})()}
{/* Rental Period Selection - Only show for non-owners */}
{!isOwner && item.availability && !isAlreadyRenting && (
{!isOwner && item.isAvailable && !isAlreadyRenting && (
<>
<hr />
<div className="text-start">
@@ -758,7 +758,7 @@ const ItemDetail: React.FC = () => {
)}
{/* Action Buttons */}
{!isOwner && item.availability && !isAlreadyRenting && (
{!isOwner && item.isAvailable && !isAlreadyRenting && (
<div className="d-grid">
<button
className="btn btn-primary"