From 3c22257359879b69167d0b0224e07aa87538b546 Mon Sep 17 00:00:00 2001 From: Huy Nguyen Date: Tue, 16 Jul 2024 15:47:09 +0700 Subject: [PATCH] Chore: hide the toast message in the scanning app (#83) * fix: unable to scan the long barcodes on mobile devices * fix: reduce too many requests in the scanning app * chore: hide the toast message in the scanning app --- packages/mock-app/src/pages/Scanning.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/mock-app/src/pages/Scanning.tsx b/packages/mock-app/src/pages/Scanning.tsx index 28786455..b4d5615b 100644 --- a/packages/mock-app/src/pages/Scanning.tsx +++ b/packages/mock-app/src/pages/Scanning.tsx @@ -36,7 +36,7 @@ const Scanning = () => { redirectToVerifyPage(dlrPassport.href); } catch (error) { console.log(error); - toastMessage({ status: Status.error, message: 'Failed to verify code' }); + // toastMessage({ status: Status.error, message: 'Failed to verify code' }); } finally { setIsLoading(false); } @@ -64,7 +64,8 @@ const Scanning = () => { const onScanResult = (decodedText: string, result: Html5QrcodeResult) => { const formatName = result?.result?.format?.formatName; if (!formatName) { - return toastMessage({ status: Status.error, message: 'Failed to scanning code' }); + return; + // return toastMessage({ status: Status.error, message: 'Failed to scanning code' }); } const providerInstance = getProviderByType(appConfig.identifyProvider.type);