diff --git a/src/components/ContractModal.jsx b/src/components/ContractModal.jsx
index 8d33847..d4ad3ce 100644
--- a/src/components/ContractModal.jsx
+++ b/src/components/ContractModal.jsx
@@ -77,25 +77,30 @@ export const ContractModal = ({ closeModal, selectedCourse, isVisible, refetchEv
{selectedCourse?.user.name}
- {selectedCourse?.sessions.map((session) => (
- <>
-
{session.name.split('|')[2].trim()}
-
- {session.events.map((event) => (
- <>
- {event.date}
-
- {event.locationName}
-
-
- {event.startTime} - {event.endTime}
-
- {event.fees}
- >
- ))}
-
- >
- ))}
+ {selectedCourse?.sessions.map((session) => {
+ const splitted = session.name.split('|')
+ return (
+ <>
+
+ {splitted.length > 2 ? splitted[2].trim() : session.name}
+
+
+ {session.events.map((event) => (
+ <>
+ {event.date}
+
+ {event.locationName}
+
+
+ {event.startTime} - {event.endTime}
+
+ {event.fees}
+ >
+ ))}
+
+ >
+ )
+ })}