Skip to content

Commit

Permalink
chore: rename whitelisted with communityApproved
Browse files Browse the repository at this point in the history
  • Loading branch information
antomor committed Nov 14, 2024
1 parent 4dd977d commit 499ffa7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/collective-rewards/user/hooks/useGetBuilders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ type BuilderStatusWithExcluded = BuilderStatus | 'X'

const getCombinedBuilderStatus = (builderState: BuilderStateStruct): BuilderStatusWithExcluded => {
// TODO: to review it
const [activated, kycApproved, whitelisted, , revoked, ,] = builderState
const [activated, kycApproved, communityApproved, , revoked, ,] = builderState
return revoked
? BuilderStatusActive
: activated && kycApproved && whitelisted
: activated && kycApproved && communityApproved
? BuilderStatusActive
: kycApproved || whitelisted
: kycApproved || communityApproved
? BuilderStatusInProgress
: EXCLUDED_BUILDER_STATUS // used to filter out builders
}
Expand Down

0 comments on commit 499ffa7

Please sign in to comment.