Closed zlshames closed 1 year ago
Yes I think that is a better move, not sure if we even need a nickname field. Can just ignore that
Ok, here is my logic:
let displayName = null;
if (isNotEmpty(e?.firstName) && isEmpty(e?.lastName)) displayName = e.firstName;
if (isNotEmpty(e?.firstName) && isNotEmpty(e?.lastName)) displayName = `${e.firstName} ${e.lastName}`;
if (isEmpty(displayName) && isNotEmpty(e?.nickname)) displayName = e.nickname;
Basically, use the first & last name, and if that doesn't exist somehow, use the nickname
yeah should be fine
Fixed, dev branch
@tneotia looking at my code, the nickname is only used if there is no display name (for the display name field). Would you rather me add a nickname field and make the display name the first + last name?