SHA256
7 lines
303 B
JavaScript
7 lines
303 B
JavaScript
export function userDisplayName({ login = '', firstName = '', lastName = '' } = {}) {
|
|
const first = String(firstName || '').trim();
|
|
const last = String(lastName || '').trim();
|
|
const full = [first, last].filter(Boolean).join(' ').trim();
|
|
return full || String(login || '').trim() || 'unknown';
|
|
}
|