diff --git a/src/navigation/courier/barcode/Barcode.js b/src/navigation/courier/barcode/Barcode.js index 450697728..959d9420b 100644 --- a/src/navigation/courier/barcode/Barcode.js +++ b/src/navigation/courier/barcode/Barcode.js @@ -199,7 +199,7 @@ function BarcodePage({ return () => { shouldNotificationBeDisplayed(true); }; - }, []); + }, [shouldNotificationBeDisplayed]); useEffect(() => { async function processActions() { @@ -219,7 +219,7 @@ function BarcodePage({ } processActions(); - }, [clientActionsQueue]); + }, [clientActionsQueue, checkClientAction]); return ( <> diff --git a/src/navigation/courier/barcode/BarcodeIncident.js b/src/navigation/courier/barcode/BarcodeIncident.js index f48f955e9..dd56aa64f 100644 --- a/src/navigation/courier/barcode/BarcodeIncident.js +++ b/src/navigation/courier/barcode/BarcodeIncident.js @@ -43,7 +43,7 @@ function BarcodeIncident({ useEffect(() => { navigation.setOptions({ headerShown: !enableCamera }); - }, [enableCamera]); + }, [enableCamera, navigation]); const { data, isSuccess, isError } = useQuery( ['task', 'failure_reasons', entity.id],