react-qr-scanner
react-qr-scanner copied to clipboard
useDeviceList() throws error when no cameras are available
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 [].