mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-08 11:32:39 +00:00
fix existance checks for first_name and last_name
This commit is contained in:
parent
675814f1b1
commit
7295342ec2
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ module.exports = WebsocketController =
|
|||
cursorData.id = client.id
|
||||
cursorData.user_id = user_id if user_id?
|
||||
cursorData.email = email if email?
|
||||
if first_name? or last_name?
|
||||
if first_name or last_name
|
||||
cursorData.name = if first_name && last_name
|
||||
"#{first_name} #{last_name}"
|
||||
else if first_name
|
||||
|
|
Loading…
Reference in a new issue