Fixes a potential error.

master
Luka Vandervelden 4 years ago
parent b673c2989d
commit 04a3d5119a

@ -510,7 +510,8 @@ socket.on-message = (event) ->
when "project"
model.projects[message.project.id] = Project message.project
when "user"
model.users[message.user.uid] := message.user
if message.user
model.users[message.user.uid] := message.user
else
console.log "RECEIVED UNKNOWN MESSAGE TYPE: #{message.type}"

Loading…
Cancel
Save