rental price calculation bug, sticky pricing cards on mobile, bigger font app wide, removed delivery options from frontened, searching by location with zipcode works when there's multiple zipcodes in the area,
This commit is contained in:
1 parent
7dd3aff0f8
commit
546c881701
12 files changed
+254
-222
No files matched your search
@@ -33,8 +33,8 @@ class RentalDurationCalculator {
|
||||
// Calculate base amount based on duration (tiered pricing)
|
||||
let totalAmount;
|
||||
|
||||
if (item.pricePerHour && diffHours <= 24) {
|
||||
// Use hourly rate for rentals <= 24 hours
|
||||
if (item.pricePerHour && diffHours < 24) {
|
||||
// Use hourly rate for rentals under 24 hours
|
||||
totalAmount = diffHours * Number(item.pricePerHour);
|
||||
} else if (diffDays <= 7 && item.pricePerDay) {
|
||||
// Use daily rate for rentals <= 7 days
|
||||
|
||||
Reference in new issue
Block a user