Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nexarvo committed Apr 2, 2024
1 parent 6b96af5 commit 4ac2310
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ function MoneyTemporaryForRefactorRequestParticipantsSelector({
*
* @param {Object} option
*/
// eslint-disable-next-line react-hooks/exhaustive-deps -- we don't want to trigger this callback when iouType changes
const addSingleParticipant = useCallback(
(option) => {
onParticipantsAdded([
Expand All @@ -194,14 +193,14 @@ function MoneyTemporaryForRefactorRequestParticipantsSelector({
]);
onFinish();
},
// eslint-disable-next-line react-hooks/exhaustive-deps -- we don't want to trigger this callback when iouType changes
[onFinish, onParticipantsAdded],
);

/**
* Removes a selected option from list if already selected. If not already selected add this option to the list.
* @param {Object} option
*/
// eslint-disable-next-line react-hooks/exhaustive-deps -- we don't want to trigger this callback when iouType changes
const addParticipantToSelection = useCallback(
(option) => {
const isOptionSelected = (selectedOption) => {
Expand Down Expand Up @@ -237,6 +236,7 @@ function MoneyTemporaryForRefactorRequestParticipantsSelector({

onParticipantsAdded(newSelectedOptions, newSelectedOptions.length !== 0 ? CONST.IOU.TYPE.SPLIT : undefined);
},
// eslint-disable-next-line react-hooks/exhaustive-deps -- we don't want to trigger this callback when iouType changes
[participants, onParticipantsAdded],
);

Expand Down

0 comments on commit 4ac2310

Please sign in to comment.