Skip to content

Commit

Permalink
fix: remove unused var (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasMaupin authored Dec 16, 2024
1 parent 4f706d5 commit 17a04d9
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/components/production-list/production-list-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 17a04d9

Please sign in to comment.