Skip to content

Commit

Permalink
add comment for special case of feature flag filter
Browse files Browse the repository at this point in the history
  • Loading branch information
magnearun committed Mar 3, 2025
1 parent c79be13 commit 6205b65
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,10 @@ export class DelegationsIndexService {
return delegations;
}

// Special case: Custom and GeneralMandate delegation types are stored with a ":person" or ":company" suffix,
// indicating if the value is allowing for delegations of the type from a person or a company.
return delegations.filter((delegation) => {

if (delegation.type === AuthDelegationType.Custom || delegation.type === AuthDelegationType.GeneralMandate) {
const isFromPerson =
featureFlaggedDelegationTypes.has(`${delegation.type}:person`) &&
Expand Down

0 comments on commit 6205b65

Please sign in to comment.