From 89050343f2a724898161032de2d8d1900f48bc04 Mon Sep 17 00:00:00 2001 From: Mia <49593536+mia-pi-git@users.noreply.github.com> Date: Mon, 2 Oct 2023 12:03:58 -0500 Subject: [PATCH] Fix crash in searching for battles --- js/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/client.js b/js/client.js index 6b0f1bb578..38212c2476 100644 --- a/js/client.js +++ b/js/client.js @@ -952,7 +952,7 @@ function toId() { * Send team to sim server */ sendTeam: function (team, callback) { - if (team.teamid && !team.loaded) { + if (team && team.teamid && !team.loaded) { return this.loadTeam(team, function (team) { app.sendTeam(team, callback); });