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

@@ -65,7 +65,7 @@ export default function BatchCodeGenerator({user}: {user: User}) {
return EMAIL_REGEX.test(email) && !users.map((u) => u.email).includes(email)
? {
email: email.toString(),
name: `${firstName} ${lastName}`,
name: `${firstName ?? ""} ${lastName ?? ""}`.trim(),
passport_id: passport_id.toString(),
}
: undefined;