Do not display spaces bar if it is useless

This commit is contained in:
2025-12-01 19:06:58 +01:00
parent 6d78930b89
commit 3274d07635

View File

@@ -16,6 +16,9 @@ export function SpaceSelector(p: {
[p.rooms] [p.rooms]
); );
// Do not display space bar if your is not member of any space
if (spaces.length === 0) return <></>;
return ( return (
<div style={{ display: "flex", flexDirection: "column" }}> <div style={{ display: "flex", flexDirection: "column" }}>
<SpaceButton <SpaceButton