= {
- linesMap, // TODO send the updated map instead of this array
+ linesMap: {}, // TODO send the updated map instead of this array
relevantUsers: [],
$ws,
...handlers,
diff --git a/packages/desktop/src/pages/terminal/details/index.tsx b/packages/desktop/src/pages/terminal/details/index.tsx
index 9d5cfeb..b165b42 100644
--- a/packages/desktop/src/pages/terminal/details/index.tsx
+++ b/packages/desktop/src/pages/terminal/details/index.tsx
@@ -21,7 +21,7 @@ export default function LineDetailsTerminal({
const isUserToggleTuned = useMemo(
() => selectedLine?.currentUserMember?.state === LineMemberState.TUNED,
- [selectedLine]
+ [selectedLine.currentUserMember]
);
// seeing if I am in the list of broadcasters
@@ -34,6 +34,10 @@ export default function LineDetailsTerminal({
[userDetails, selectedLine]
);
+ useEffect(() => {
+ console.log(selectedLine?.currentUserMember);
+ }, [selectedLine]);
+
return (
<>
diff --git a/packages/desktop/src/pages/terminal/index.tsx b/packages/desktop/src/pages/terminal/index.tsx
index dc736f4..20df6e0 100644
--- a/packages/desktop/src/pages/terminal/index.tsx
+++ b/packages/desktop/src/pages/terminal/index.tsx
@@ -110,8 +110,12 @@ export default function NirvanaTerminal() {
// find the line from the data provider
if (linesMap[selectedLineId]) {
+ console.log("looking for selected Line in map for details section");
+
const foundSelectedLine = linesMap[selectedLineId];
+ console.log(foundSelectedLine);
+
// on mount of this, we want to temporarily tune into the line if we are not already tuned in...which would happen if we toggle tuned in
if (
!foundSelectedLine.tunedInMemberIds?.includes(
@@ -181,25 +185,24 @@ export default function NirvanaTerminal() {
+ {!(allLines.length > 0 && !(toggleTunedLines.length > 0)) && (
+
+ You have no lines!
Create one to connect to your team
+ instantly.
+
+ )}
+
{/* rest of the lines */}
{isLoadingInitialLines ? (
) : (
- <>
- {!allLines.length && (
-
- You have no lines!
Create one to connect to your team
- instantly.
-
- )}
- {allLines.map((masterLineData) => (
-
- ))}
- >
+ allLines.map((masterLineData) => (
+
+ ))
)}