message: draft - alert debug
diff: @@ -6,6 +6,18 @@ import styles from './styles.scss'
  import { FormattedMessage } from 'react-intl'
  import QrReader from 'react-qr-scanner'
  +const defaultDeviceIdChooser = (filteredDevices, videoDevices) => {
  + alert('defaultDeviceIdChooser')
  + alert('Filtered:'+ filteredDevices.length)
  + alert('Count:'+ videoDevices.length)
  + videoDevices.forEach((device) => {
  + alert('Device label: '+ device.label)
  + })
  + return (filteredDevices.length > 0)
  + ? filteredDevices[0].deviceId
  + // No device found with the pattern thus use another video device
  + : videoDevices[0].deviceId
  +}
  /* eslint-disable */
  const QR = ({ openScan, handleScan, handleError }) => (
  @@ -18,6 +30,7 @@ const QR = ({ openScan, handleScan, handleError }) => (
  facingMode="front"
  onError={handleError}
  onScan={handleScan}
  + chooseDeviceId={defaultDeviceIdChooser}
  style={{ width: '100%' }}
  />
  </div>
  