We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ccfd22 commit 4d0edd7Copy full SHA for 4d0edd7
1 file changed
src/lib/scopes/connectionScope.tsx
@@ -41,15 +41,22 @@ export function ConnectionScopeProviderWithConnectionsPlayersProvider({
41
42
return (
43
<>
44
- {connections.map((connection) => (
45
- <ScopeProvider
46
- key={connection.UCID}
47
- scope={ConnectionScope}
48
- value={connection}
49
- >
50
- {children}
51
- </ScopeProvider>
52
- ))}
+ {connections.map((connection) => {
+ // Do not show buttons for host
+ if (connection.UCID === 0) {
+ return null;
+ }
+
+ return (
+ <ScopeProvider
+ key={connection.UCID}
53
+ scope={ConnectionScope}
54
+ value={connection}
55
+ >
56
+ {children}
57
+ </ScopeProvider>
58
+ );
59
+ })}
60
</>
61
);
62
}
0 commit comments