style: fix prefer-const and prettier formatting issues
This commit is contained in:
@@ -65,20 +65,20 @@
|
||||
maxDate.getDate()
|
||||
);
|
||||
|
||||
let hoursUntilAppointment = $derived(
|
||||
const hoursUntilAppointment = $derived(
|
||||
(new SvelteDate(booking.start_time).getTime() - new SvelteDate().getTime()) / (1000 * 60 * 60)
|
||||
);
|
||||
let hasPayments = $derived((booking.amount_paid ?? 0) > 0);
|
||||
let showNoticeWarning = $derived(
|
||||
const hasPayments = $derived((booking.amount_paid ?? 0) > 0);
|
||||
const showNoticeWarning = $derived(
|
||||
hasPayments ? hoursUntilAppointment < 72 : hoursUntilAppointment < 24
|
||||
);
|
||||
let showNoShowWarning = $derived(
|
||||
const showNoShowWarning = $derived(
|
||||
!hasPayments && hoursUntilAppointment < 24 && hoursUntilAppointment >= 0
|
||||
);
|
||||
let forgiveFees = $state(false);
|
||||
let forgiveNoShow = $state(false);
|
||||
|
||||
let bookingDuration = $derived(
|
||||
const bookingDuration = $derived(
|
||||
booking.services?.reduce(
|
||||
(sum, s) => sum + (s.override_duration_minutes ?? s.duration_minutes ?? 0),
|
||||
0
|
||||
|
||||
Reference in New Issue
Block a user