diff --git a/__app/component/Scanner/Scanner.js b/__app/component/Scanner/Scanner.js index 6725c9d..2b4072e 100644 --- a/__app/component/Scanner/Scanner.js +++ b/__app/component/Scanner/Scanner.js @@ -62,7 +62,7 @@ function Scanner({ } }); } catch (error) { - return handleError({ msgType: 'BAR_CODE_DETECTION_FAILED', msg: failureMsg.barCodeDetectionFailed || JSON.stringify(error), failureCb }); + return handleError({ msgType: 'BAR_CODE_DETECTION_FAILED', msg: JSON.stringify(error) || failureMsg.barCodeDetectionFailed, failureCb }); } }