From b95443228cb8a06dbb1efdb63a7ee663a09051a2 Mon Sep 17 00:00:00 2001 From: Donkie Date: Thu, 3 Aug 2023 22:27:20 +0200 Subject: [PATCH] Client: Removed unsetting lasterror --- client/src/components/qrCodeScanner.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/client/src/components/qrCodeScanner.tsx b/client/src/components/qrCodeScanner.tsx index 32d8a3a..0b4bf87 100644 --- a/client/src/components/qrCodeScanner.tsx +++ b/client/src/components/qrCodeScanner.tsx @@ -20,12 +20,6 @@ const QRCodeScannerModal: React.FC = () => { } }; - useEffect(() => { - if (visible) { - setLastError(null); - } - }, [visible]); - return ( <>