react-qr-scanner icon indicating copy to clipboard operation
react-qr-scanner copied to clipboard

useDeviceList() throws error when no cameras are available

Open MarcoWel opened this issue 2 months ago • 0 comments

On a computer without cameras, the line const cameraDevices = useDeviceList(); causes an uncaught runtime error "Requested device not found". IMO this should just create an empty array [].

MarcoWel avatar Apr 26 '24 19:04 MarcoWel