initials support complex names
This commit is contained in:
@ -140,7 +140,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
||||
if (shift.assignments.some(a => a.isWithTransport)) {
|
||||
if (shift.requiresTransport) {
|
||||
notes = "Транспорт: ";
|
||||
notes_bold = " " + shift.assignments.filter(a => a.isWithTransport).map(a => a.publisher.firstName.charAt(0) + "." + a.publisher.lastName.charAt(0) + ".").join(", ");
|
||||
notes_bold = " " + shift.assignments.filter(a => a.isWithTransport).map(a => common.getInitials(a.publisher.firstName + " " + a.publisher.lastName)).join(", ");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user