diff --git a/apps/web/src/portal/sections/AccountSettings.tsx b/apps/web/src/portal/sections/AccountSettings.tsx index 6771cd9..d128dc9 100644 --- a/apps/web/src/portal/sections/AccountSettings.tsx +++ b/apps/web/src/portal/sections/AccountSettings.tsx @@ -84,7 +84,7 @@ function PersonalInfo({ sessionId, readOnly }: { sessionId: string | null; readO } else { setError("Failed to load personal info"); } - } catch (err) { + } catch { setError("Failed to load personal info"); } finally { setLoading(false); @@ -192,7 +192,7 @@ function ManagePets({ sessionId, readOnly }: { sessionId: string | null; readOnl } else { setError("Failed to load pets"); } - } catch (err) { + } catch { setError("Failed to load pets"); } finally { setLoading(false); diff --git a/apps/web/src/portal/sections/Appointments.tsx b/apps/web/src/portal/sections/Appointments.tsx index e0d9413..9a83a52 100644 --- a/apps/web/src/portal/sections/Appointments.tsx +++ b/apps/web/src/portal/sections/Appointments.tsx @@ -39,13 +39,6 @@ interface Service { isAddOn?: boolean; } -interface Groomer { - id: string; - name: string; - specialties?: string[]; - avatar?: string; -} - interface AppointmentsSectionProps { sessionId: string | null; readOnly: boolean; @@ -104,7 +97,6 @@ const CONFIRMATION_STATUS_COLORS: Record = { }; export const AppointmentsSection: React.FC = ({ sessionId, readOnly }) => { - const [appointments, setAppointments] = useState([]); const [upcomingAppointments, setUpcomingAppointments] = useState([]); const [pastAppointments, setPastAppointments] = useState([]); const [isLoading, setIsLoading] = useState(true); @@ -118,7 +110,6 @@ export const AppointmentsSection: React.FC = ({ sessio useEffect(() => { const fetchAppointments = async () => { if (!sessionId) { - setAppointments([]); setUpcomingAppointments([]); setPastAppointments([]); setIsLoading(false); @@ -134,8 +125,6 @@ export const AppointmentsSection: React.FC = ({ sessio const data = await response.json(); const fetchedAppointments: Appointment[] = data.appointments || data || []; - setAppointments(fetchedAppointments); - const upcoming = fetchedAppointments.filter((appt) => isUpcoming(appt)); const past = fetchedAppointments.filter((appt) => !isUpcoming(appt));