Skip to content

Commit

Permalink
chore: order the operands of && from fastest to slowest
Browse files Browse the repository at this point in the history
  • Loading branch information
simonadomnisoru committed Sep 30, 2024
1 parent c32f256 commit 98892d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const useFiltersOnly = (
) =>
useMemo(() => {
const enableUserAssignment =
Array.from(stages.values()).find(stage => stage.enableUserAssignment) && !programStageId;
!programStageId && Array.from(stages.values()).find(stage => stage.enableUserAssignment);
return [
{
id: MAIN_FILTERS.PROGRAM_STATUS,
Expand Down

0 comments on commit 98892d8

Please sign in to comment.