relogin on 403

This commit is contained in:
Primakov Alexandr Alexandrovich 2024-03-01 12:03:16 +03:00
parent 37998bee63
commit 7d0357e5ac
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ export const Lesson = () => {
<ul style={{ paddingLeft: 0 }}>
{accessCode?.body?.lesson?.students?.map((student, index) => (
<LessonItem key={index}>
<Lessonname>{student.preferred_username || student.name}</Lessonname>
<Lessonname>{student.name || student.preferred_username}</Lessonname>
</LessonItem>
))}
</ul>

View File

@ -52,7 +52,7 @@ export const UserPage = () => {
<ul style={{ paddingLeft: 0 }}>
{ls.data?.body?.students?.map((student, index) => (
<LessonItem key={index}>
<Lessonname>{student.preferred_username || student.name}</Lessonname>
<Lessonname>{student.name || student.preferred_username}</Lessonname>
</LessonItem>
))}
</ul>