Fixes a potential error.

This commit is contained in:
Luka Vandervelden 2019-10-26 18:56:52 +02:00
parent b673c2989d
commit 04a3d5119a

View File

@ -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}"