Update packages/lib/convertMinimumBookingNoticeToMinutes.ts

Co-authored-by: alannnc <alannnc@gmail.com>
This commit is contained in:
Om Ray 2022-10-28 16:15:48 -04:00 committed by GitHub
parent 4946f32a1c
commit 7591fed08b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,9 +1,9 @@
export default function convertMinimumBookingNoticeToMinutes(type: string, minNotice: number) {
if (type == "minute") {
if (type === "minute") {
return minNotice;
} else if (type == "hour") {
} else if (type === "hour") {
return minNotice * 60;
} else if (type == "day") {
} else if (type === "day") {
return minNotice * 1440;
}
return minNotice;