Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
r0xsh committed Dec 4, 2024
1 parent 990d170 commit aaaf9b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/navigation/courier/barcode/Barcode.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect, useState, useRef } from 'react';
import React, { useEffect, useState, useRef, useCallback } from 'react';
import { withTranslation } from 'react-i18next';
import { connect } from 'react-redux';
import {
Expand Down Expand Up @@ -169,7 +169,7 @@ function BarcodePage({
}
}

function checkClientAction({ action, ...params }) {
const checkClientAction = useCallback(({ action, ...params }) => {
if (!entity) return;

switch (action) {
Expand All @@ -192,7 +192,7 @@ function BarcodePage({
default:
return;
}
}
}, [entity, navigation, taskLists]);

Check failure on line 195 in src/navigation/courier/barcode/Barcode.js

View workflow job for this annotation

GitHub Actions / Basic tests

React Hook useCallback has missing dependencies: 'askToAssign' and 'askToUnassign'. Either include them or remove the dependency array

useEffect(() => {
shouldNotificationBeDisplayed(false);
Expand Down

0 comments on commit aaaf9b7

Please sign in to comment.