Skip to content

Commit

Permalink
Chore: hide the toast message in the scanning app (#83)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
huynguyen-hl authored Jul 16, 2024
1 parent 93d1859 commit 3c22257
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/mock-app/src/pages/Scanning.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 3c22257

Please sign in to comment.