Skip to content

Commit

Permalink
chore(overriderules): renaming inaccurately named constant
Browse files Browse the repository at this point in the history
  • Loading branch information
RankWeis committed Feb 6, 2025
1 parent 69ea315 commit 16474cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Settings/OverrideRule/OverrideRuleTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ const OverrideRuleTile = ({
})
);
setKeywords(keywords);
const distinctUsers = rules
const allUsersFromRules = rules
.map((rule) => rule.users)
.filter((users) => users)
.join(',');
if (distinctUsers) {
if (allUsersFromRules) {
const res = await fetch(
`/api/v1/user?includeIds=${encodeURIComponent(distinctUsers)}`
`/api/v1/user?includeIds=${encodeURIComponent(allUsersFromRules)}`
);
if (!res.ok) throw new Error();
const users: User[] = (await res.json()).results;
Expand Down

0 comments on commit 16474cf

Please sign in to comment.