From 7c9c2351fddfa62a907f90692150f325f6e5684b Mon Sep 17 00:00:00 2001
From: Martin <901824+martinstark@users.noreply.github.com>
Date: Wed, 17 Apr 2024 12:56:26 +0200
Subject: [PATCH] fix: update logic for showing hotkey legend
---
.../production-line/production-line.tsx | 28 ++++++++++---------
1 file changed, 15 insertions(+), 13 deletions(-)
diff --git a/src/components/production-line/production-line.tsx b/src/components/production-line/production-line.tsx
index 41ffb258..f15d060f 100644
--- a/src/components/production-line/production-line.tsx
+++ b/src/components/production-line/production-line.tsx
@@ -242,19 +242,21 @@ export const ProductionLine: FC = () => {
)}
- {!isMobile && (
- <>
-
- Hotkeys
-
-
- M: Toggle Input Mute
-
-
- T: Push to Talk
-
- >
- )}
+ {inputAudioStream &&
+ inputAudioStream !== "no-device" &&
+ !isMobile && (
+ <>
+
+ Hotkeys
+
+
+ M: Toggle Input Mute
+
+
+ T: Push to Talk
+
+ >
+ )}