style: format multi-line expressions in BookingFlow.svelte
CI / Go vulnerabilities (push) Successful in 31s
CI / Frontend lint & types (push) Successful in 1m42s
CI / Tests (push) Failing after 1m52s
CI / Race detector (push) Failing after 4m3s

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
2026-07-05 12:00:09 +01:00
co-authored by Sisyphus
parent e642b0fa3e
commit 4879ca5a82
@@ -682,10 +682,16 @@
loadingAvailableHours = true;
try {
const authHeaders: RequestInit['headers'] = authStore.currentToken ? { Authorization: `Bearer ${authStore.currentToken}` } : undefined;
const authHeaders: RequestInit['headers'] = authStore.currentToken
? { Authorization: `Bearer ${authStore.currentToken}` }
: undefined;
const [whRes, ahRes] = await Promise.all([
fetch(`/api/scheduling/working-hours?start=${startStr}&end=${endStr}`, { headers: authHeaders }),
fetch(`/api/scheduling/available-hours?start=${startStr}&end=${endStr}`, { headers: authHeaders })
fetch(`/api/scheduling/working-hours?start=${startStr}&end=${endStr}`, {
headers: authHeaders
}),
fetch(`/api/scheduling/available-hours?start=${startStr}&end=${endStr}`, {
headers: authHeaders
})
]);
if (!whRes.ok || !ahRes.ok) {
throw new Error(`HTTP error! wh: ${whRes.status}, ah: ${ahRes.status}`);
@@ -776,7 +782,9 @@
const startStr = startOfMonth.toString();
const endStr = endOfMonth.toString();
const authHeaders: RequestInit['headers'] = authStore.currentToken ? { Authorization: `Bearer ${authStore.currentToken}` } : undefined;
const authHeaders: RequestInit['headers'] = authStore.currentToken
? { Authorization: `Bearer ${authStore.currentToken}` }
: undefined;
// Fetch working hours
const workingHoursResponse = await fetch(
@@ -1298,7 +1306,9 @@
// Step 2 -> Step 3: Check if we already hold a valid reservation for this exact slot
if (currentStep === 2) {
const sameSlot = _reservationId && !reservationExpired &&
const sameSlot =
_reservationId &&
!reservationExpired &&
_reservedSlotTime === selectedTime &&
_reservedSlotDate === (selectedDate ? selectedDate.toString() : null);
@@ -1311,7 +1321,9 @@
try {
const res = await fetch('/api/bookings/reserve', {
method: 'DELETE',
headers: authStore.currentToken ? { Authorization: `Bearer ${authStore.currentToken}` } : {}
headers: authStore.currentToken
? { Authorization: `Bearer ${authStore.currentToken}` }
: {}
});
if (!res.ok) console.warn('Failed to release old reservation', res.status);
} catch (e) {