diff --git a/apps/dispatch/.env.example b/apps/dispatch/.env.example index 07d01925..09c8616b 100644 --- a/apps/dispatch/.env.example +++ b/apps/dispatch/.env.example @@ -1,2 +1,3 @@ +NEXTAUTH_SECRET= NEXT_PUBLIC_HUB_URL= NEXT_PUBLIC_SERVICE_ID= \ No newline at end of file diff --git a/apps/hub/app/(app)/events/_components/item.tsx b/apps/hub/app/(app)/events/_components/item.tsx index 66c692ed..71d754de 100644 --- a/apps/hub/app/(app)/events/_components/item.tsx +++ b/apps/hub/app/(app)/events/_components/item.tsx @@ -48,7 +48,7 @@ export const KursItem = ({ /> -
+
{event.finishedBadges.map((b) => { return ; })} diff --git a/apps/hub/app/(app)/events/_components/modalBtn.tsx b/apps/hub/app/(app)/events/_components/modalBtn.tsx index 6a9fef90..302e7a57 100644 --- a/apps/hub/app/(app)/events/_components/modalBtn.tsx +++ b/apps/hub/app/(app)/events/_components/modalBtn.tsx @@ -94,22 +94,21 @@ const ModalBtn = ({ date.id === selectAppointmentForm.watch("eventAppointmentId") || selectedAppointment?.id, ); - const ownIndexInParticipantList = - (selectedDate as any)?.Participants?.findIndex( - (p: Participant) => p.userId === user.id, - ) || (selectedDate as any)?.Participants?.length + 1; + const ownIndexInParticipantList = ( + selectedDate as any + )?.Participants?.findIndex((p: Participant) => p.userId === user.id); const ownPlaceInParticipantList = ownIndexInParticipantList === -1 ? (selectedDate as any)?.Participants?.length + 1 : ownIndexInParticipantList + 1; - console.log( + console.log({ selectedDate, - ownPlaceInParticipantList > event.maxParticipants!, ownPlaceInParticipantList, - event.maxParticipants, - ); + ownIndexInParticipantList, + maxParticipants: event.maxParticipants, + }); return ( <> diff --git a/apps/hub/app/_components/Badge/Badge.tsx b/apps/hub/app/_components/Badge/Badge.tsx index 7e8784f0..92f07655 100644 --- a/apps/hub/app/_components/Badge/Badge.tsx +++ b/apps/hub/app/_components/Badge/Badge.tsx @@ -28,9 +28,7 @@ export const Badge = ({ const image = BadgeImage[name]; return ( - + {name} );