Skip to content

Commit c1416d4

Browse files
committed
Handle mic input errors on mount
1 parent a217649 commit c1416d4

File tree

1 file changed

+5
-1
lines changed
  • apps/desktop/src/routes/(window-chrome)/new-main

1 file changed

+5
-1
lines changed

apps/desktop/src/routes/(window-chrome)/new-main/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,11 @@ function Page() {
616616
const setCamera = createCameraMutation();
617617

618618
onMount(() => {
619-
if (rawOptions.micName) void commands.setMicInput(rawOptions.micName);
619+
if (rawOptions.micName) {
620+
setMicInput
621+
.mutateAsync(rawOptions.micName)
622+
.catch((error) => console.error("Failed to set mic input:", error));
623+
}
620624

621625
if (rawOptions.cameraID && "ModelID" in rawOptions.cameraID)
622626
setCamera.mutate({ ModelID: rawOptions.cameraID.ModelID });

0 commit comments

Comments
 (0)