Solved some bugs with reading the Excel file
This commit is contained in:
@@ -61,9 +61,9 @@ export default function BatchCodeGenerator({user}: {user: User}) {
|
||||
const [firstName, lastName, country, passport_id, email, phone] = row as string[];
|
||||
return EMAIL_REGEX.test(email) && !users.map((u) => u.email).includes(email)
|
||||
? {
|
||||
email,
|
||||
email: email.toString(),
|
||||
name: `${firstName} ${lastName}`,
|
||||
passport_id,
|
||||
passport_id: passport_id.toString(),
|
||||
}
|
||||
: undefined;
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user