cronofy-elements
Advanced tools
Comparing version 1.7.10 to 1.7.11
{ | ||
"name": "cronofy-elements", | ||
"version": "1.7.10", | ||
"version": "1.7.11", | ||
"description": "Fast track scheduling with Cronofy's embeddable UI Elements", | ||
@@ -5,0 +5,0 @@ "main": "build/npm/CronofyElements.js", |
@@ -42,7 +42,7 @@ import React, { useContext } from "react"; | ||
"YYYY-MM-DDTHH:mm:00Z" | ||
).diff(limits[0], "days"); | ||
).diff(limits[0], "minutes"); | ||
const afterEnd = moment( | ||
item.value.slot.end, | ||
"YYYY-MM-DDTHH:mm:00Z" | ||
).diff(limits[1], "days"); | ||
).diff(limits[1], "minutes"); | ||
return beforeStart >= 0 && afterEnd <= 0; | ||
@@ -49,0 +49,0 @@ }); |
@@ -100,3 +100,2 @@ import moment from "moment"; | ||
export const checkSlotAvailability = (periods, emptySlots) => { | ||
console.log("periods", periods); | ||
const checkedSlots = {}; | ||
@@ -103,0 +102,0 @@ Object.keys(emptySlots).map(key => { |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2436793
20573