Skip to content

Commit fc950ae

Browse files
committed
Make the single camera notice visible
Leave the trigger enabled when only one camera exists, so the 'No other cameras detected' notice is visible
1 parent 1ad9ee0 commit fc950ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/src/components/WebCam/WebCamComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ function WebcamComponent({ isOpen, onClose }: WebcamComponentProps) {
232232
<Button
233233
variant="outline"
234234
className="w-full justify-between"
235-
disabled={devices.length <= 1}
235+
disabled={devices.length === 0}
236236
>
237237
<div className="flex items-center gap-2">
238238
<Camera className="h-4 w-4" />

0 commit comments

Comments
 (0)