Solved some issues with the Student Dashboard

This commit is contained in:
Tiago Ribeiro
2024-01-17 11:32:20 +00:00
parent d4867fd9a2
commit c26ff48b60
4 changed files with 5 additions and 5 deletions

View File

@@ -244,7 +244,7 @@ export default function TeacherDashboard({user}: Props) {
<>
{corporateUserToShow && (
<div className="absolute top-4 right-4 bg-neutral-200 px-2 rounded-lg py-1">
Linked to: <b>{corporateUserToShow?.corporateInformation.companyInformation.name || corporateUserToShow.name}</b>
Linked to: <b>{corporateUserToShow?.corporateInformation?.companyInformation.name || corporateUserToShow.name}</b>
</div>
)}
<section