Client: Added another error message in scanner

This commit is contained in:
Donkie
2023-08-13 12:04:17 +02:00
parent f032bdcade
commit 26d54d4ca2
3 changed files with 4 additions and 0 deletions

View File

@@ -57,6 +57,8 @@ const QRCodeScannerModal: React.FC = () => {
setLastError(t("scanner.error.streamApiNotSupported"));
} else if (error.name === "NotReadableError") {
setLastError(t("scanner.error.notReadable"));
} else if (error.name === "NotFoundError") {
setLastError(t("scanner.error.notFound"));
} else {
setLastError(t("scanner.error.unknown", { error: error.name }));
}