From 04a3d5119a47bf011cad896a6f8aa8eef0634c77 Mon Sep 17 00:00:00 2001 From: Luka Vandervelden Date: Sat, 26 Oct 2019 18:56:52 +0200 Subject: [PATCH] Fixes a potential error. --- client/index.ls | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/index.ls b/client/index.ls index 4309741..dc8dead 100644 --- a/client/index.ls +++ b/client/index.ls @@ -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}"