From 503abedb6d0afab8c2e4c95074f1442b51940567 Mon Sep 17 00:00:00 2001 From: lucasmaupin Date: Mon, 16 Dec 2024 11:46:48 +0100 Subject: [PATCH] fix: remove unused var --- .../production-list/production-list-item.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/components/production-list/production-list-item.tsx b/src/components/production-list/production-list-item.tsx index cf90972..7064540 100644 --- a/src/components/production-list/production-list-item.tsx +++ b/src/components/production-list/production-list-item.tsx @@ -140,17 +140,13 @@ export const ProductionsListItem = ({ const goToProduction = (lineId: string) => { // TODO add some visual feedback here if somehow userSettings is not configured - if ( - userSettings?.username && - userSettings?.audioinput && - userSettings?.audiooutput - ) { + if (userSettings?.username) { const payload = { productionId: production.productionId, lineId, username: userSettings.username, - audioinput: userSettings.audioinput, - audiooutput: userSettings.audiooutput, + audioinput: userSettings?.audioinput || "no-device", + audiooutput: userSettings?.audiooutput || null, }; const uuid = globalThis.crypto.randomUUID();