Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render() {
const { error, status, onBypassGenuine, onRetry } = this.props;
// $FlowFixMe
if (error.errorCode === BleErrorCode.LocationServicesDisabled) {
return ;
}
// $FlowFixMe
if (error.errorCode === BleErrorCode.BluetoothUnauthorized) {
return ;
}
const isPairingStatus = status === "pairing";
const isGenuineCheckStatus = status === "genuinecheck";
const url = (isPairingStatus && urls.errors.PairingFailed) || undefined;
const outerError = isPairingStatus
? new PairingFailed()
: isGenuineCheckStatus
? new GenuineCheckFailed()
: null;
return (