changed field from availability to isAvailable
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user