Fix for loading
This commit is contained in:
@@ -97,7 +97,7 @@ const chargeBookingChanges = (changes) => {
|
||||
incidents.push(incident);
|
||||
}
|
||||
}else{
|
||||
const differenceFromCreation = reservationCreationTimestamp.diff(moment.utc(), 'minutes');
|
||||
const differenceFromCreation = moment.utc().diff(reservationCreationTimestamp, 'minutes');
|
||||
|
||||
if (differenceFromCreation > ALLOWED_BOOKING_CANCELLATION_TIME){
|
||||
const chargeFee = 2 * reservationHourlyRate * oldReservationLength * BOOKING_CHANGE_PERCENTAGE_CHARGE / 100;
|
||||
|
||||
Reference in New Issue
Block a user