Skip to content

Commit

Permalink
Fix typescript issues
Browse files Browse the repository at this point in the history
  • Loading branch information
oddestdan committed Nov 24, 2024
1 parent af289ee commit f5e0d8f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions app/routes/booking/admin/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,20 +62,17 @@ 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 (
[
`${info.firstName}${info.lastName ? ` ${info.lastName}` : ""}`,
info.tel,
info.socialMedia || "",
`${assistance ? `ассистент: ${assistance} год` : ""}`,
...regular,
`${extra ? `додатково: "${extra}"` : ""}`,
]
Expand Down

0 comments on commit f5e0d8f

Please sign in to comment.