Skip to content

Commit

Permalink
fix linter.
Browse files Browse the repository at this point in the history
  • Loading branch information
r0xsh committed Dec 26, 2024
1 parent b58147e commit ade5eb2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/components/NotificationHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ export default function NotificationHandler() {
// so we do not play sound in that case, because we will not be able to stop it
// use memoized value to avoid re-starting the sound when more notifications arrive
if (
shouldNotificationBeDisplayed &&
hasNotificationsWithSound &&
AppState.currentState === 'active') {
shouldNotificationBeDisplayed &&
hasNotificationsWithSound &&
AppState.currentState === 'active') {
dispatch(startSound());
} else {
dispatch(stopSound());
}
}, [hasNotificationsWithSound, dispatch]);
}, [shouldNotificationBeDisplayed, hasNotificationsWithSound, dispatch]);

if (!shouldNotificationBeDisplayed) {
return null;
Expand Down
5 changes: 3 additions & 2 deletions src/navigation/courier/barcode/Barcode.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ function BarcodePage({
],
);
});
}
},
[t, httpClient],
)

const warningMultiplePackages = ({ count, details }) =>
Expand Down Expand Up @@ -240,7 +241,7 @@ function BarcodePage({
return;
}
},
[entity, navigation, taskLists, askToAssign, askToUnassign],
[entity, navigation, taskLists, askToAssign, askToUnassign, askToStartPickup],
);

useEffect(() => {
Expand Down

0 comments on commit ade5eb2

Please sign in to comment.