From 524d6e17b52d29c4d484028029ce28401e8ecf2e Mon Sep 17 00:00:00 2001 From: Ronnie Beggs Date: Thu, 25 Apr 2024 13:02:32 -0700 Subject: [PATCH] [cleanup] rename debounced function name. --- src/app/(BottomTabNavigation)/QRCodeScanner/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/(BottomTabNavigation)/QRCodeScanner/index.tsx b/src/app/(BottomTabNavigation)/QRCodeScanner/index.tsx index 31e52e20..c7fb6543 100644 --- a/src/app/(BottomTabNavigation)/QRCodeScanner/index.tsx +++ b/src/app/(BottomTabNavigation)/QRCodeScanner/index.tsx @@ -100,7 +100,7 @@ function QRCodeScannerScreen() { Toast.hide(); } - const debouncedFetchData = useCallback(debounce(resetScanner, 1500), []); + const debouncedResetScanner = useCallback(debounce(resetScanner, 1500), []); // function called after every `BarCodeScanningResult` event triggered by scanner async function handleBarCodeScanned(result: BarCodeScanningResult) { @@ -136,7 +136,7 @@ function QRCodeScannerScreen() { break; } } - debouncedFetchData(); + debouncedResetScanner(); } async function processBarCodeData(data: string) {