Fixed bug where could not rent 3-4 and 4-5PM

This commit is contained in:
jackiettran
2026-01-12 16:52:37 -05:00
parent 415bcc5021
commit 80d643c65c
2 changed files with 45 additions and 27 deletions

View File

@@ -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() ? (