From f5e0d8fa1b65a19a9ef097c27648bdd2503576ea Mon Sep 17 00:00:00 2001 From: oddestdan Date: Sun, 24 Nov 2024 19:30:34 +0200 Subject: [PATCH] Fix typescript issues --- app/routes/booking/admin/index.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/routes/booking/admin/index.tsx b/app/routes/booking/admin/index.tsx index 79db12d..f2f488b 100644 --- a/app/routes/booking/admin/index.tsx +++ b/app/routes/booking/admin/index.tsx @@ -62,12 +62,10 @@ export const getAppointmentDescription = ( const { services, - additionalServices: { assistance, extra }, + additionalServices: { extra }, } = description; - const regular = services.filter( - (s) => s !== BookingService.assistance && s !== BookingService.extra - ); + const regular = services.filter((s) => s !== BookingService.extra); if (extra) regular.pop(); return ( @@ -75,7 +73,6 @@ export const getAppointmentDescription = ( `${info.firstName}${info.lastName ? ` ${info.lastName}` : ""}`, info.tel, info.socialMedia || "", - `${assistance ? `ассистент: ${assistance} год` : ""}`, ...regular, `${extra ? `додатково: "${extra}"` : ""}`, ]