From 59fa1e375e9f12dd4e9bb5eb5e6b0aead589520e Mon Sep 17 00:00:00 2001 From: Steve Ruiz Date: Tue, 12 Oct 2021 23:00:43 +0100 Subject: [PATCH] Update multiplayer.tsx --- packages/dev/src/multiplayer/multiplayer.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/dev/src/multiplayer/multiplayer.tsx b/packages/dev/src/multiplayer/multiplayer.tsx index 9f73b9afb..a3a6c0f29 100644 --- a/packages/dev/src/multiplayer/multiplayer.tsx +++ b/packages/dev/src/multiplayer/multiplayer.tsx @@ -103,7 +103,8 @@ function TLDrawWrapper() { tlstate.updateUsers( others .toArray() - .map((other) => other.presence?.user) + .filter((other) => other.presence) + .map((other) => other.presence!.user) .filter(Boolean) ) })