From bd64d4593e414ad24a135868c0c8f63ce7887f39 Mon Sep 17 00:00:00 2001 From: Himanshu Gupta Date: Mon, 20 May 2024 10:32:31 +0530 Subject: [PATCH] fix(scanner): toogle fix in Scanner --- __app/component/Scanner/Scanner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }); } }