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