Skip to content

Commit

Permalink
0 is a valid teamId
Browse files Browse the repository at this point in the history
this should fix #26
  • Loading branch information
jmlee337 committed Apr 22, 2024
1 parent 5125db6 commit 419d615
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@ function Hello() {
if (
(player.playerType === 0 || player.playerType === 1) &&
!usedK.has(k) &&
(!teamId || teamId === player.teamId)
(teamId === undefined || teamId === player.teamId)
) {
slots[j].displayNames.push(
player.playerOverrides.displayName || player.displayName,
Expand All @@ -1068,7 +1068,7 @@ function Hello() {
}
usedK.set(k, true);
if (replay.isTeams) {
if (!teamId) {
if (teamId === undefined) {
teamId = player.teamId;
}
} else {
Expand Down

0 comments on commit 419d615

Please sign in to comment.