Skip to content

Commit 2464ac5

Browse files
committed
Make sure there's a static title if there doesn't happen to be a valid dynamic title.
1 parent f02db57 commit 2464ac5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/ui/coaching-sessions/coaching-session-title.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const CoachingSessionTitle: React.FC<{
3636

3737
return (
3838
<h4 className="font-semibold break-words w-full px-2 md:px-4 lg:px-6 md:text-clip">
39-
{sessionTitle?.title}
39+
{sessionTitle ? sessionTitle.title : "Untitled Session"}
4040
</h4>
4141
);
4242
};

0 commit comments

Comments
 (0)