Fixed bug where could not rent 3-4 and 4-5PM
This commit is contained in:
@@ -420,6 +420,20 @@ const RentItem: React.FC = () => {
|
||||
<i className="bi bi-exclamation-triangle me-2"></i>
|
||||
{dateValidationError}
|
||||
</div>
|
||||
) : costError ? (
|
||||
<div className="alert alert-danger">
|
||||
<i className="bi bi-exclamation-triangle me-2"></i>
|
||||
{costError}
|
||||
<div className="mt-2">
|
||||
<button
|
||||
type="button"
|
||||
className="btn btn-outline-secondary btn-sm"
|
||||
onClick={() => navigate(`/items/${id}`)}
|
||||
>
|
||||
Choose Different Dates
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
) : !rentalDates.startDateTime ||
|
||||
!rentalDates.endDateTime ||
|
||||
!getRentalData() ? (
|
||||
|
||||
Reference in New Issue
Block a user