fix all the formatting

This commit is contained in:
Thomas Ruoff
2022-04-02 00:42:25 +02:00
parent 8e0648bf0f
commit 3c4f0efdc2
11 changed files with 79 additions and 59 deletions

View File

@@ -18,5 +18,5 @@ export function getNextBigger<T>(array: T[], pivot: T): T {
}
export function uniqueFilter(value, index, self) {
return self.indexOf(value) === index;
return self.indexOf(value) === index
}

View File

@@ -31,7 +31,10 @@ export async function cancelBooking(uuid: string) {
})
}
export async function patchBooking(uuid: string, bookingData: Partial<BookFormData>) {
export async function patchBooking(
uuid: string,
bookingData: Partial<BookFormData>
) {
return fetch(`/api/bookings/${uuid}`, {
method: 'PATCH',
body: bookingData,

View File

@@ -34,7 +34,7 @@ export function getDays({
return days
}
const inclusiveEndDate = endDateExclusive ? subDays(endDate, 1) : endDate;
const inclusiveEndDate = endDateExclusive ? subDays(endDate, 1) : endDate
while (currentDay < inclusiveEndDate) {
currentDay = addDays(currentDay, 1)