diff --git a/src/app/collective-rewards/active-builders/ActiveBuildersContent.tsx b/src/app/collective-rewards/active-builders/ActiveBuildersContent.tsx index 0f3049ca..0070d208 100644 --- a/src/app/collective-rewards/active-builders/ActiveBuildersContent.tsx +++ b/src/app/collective-rewards/active-builders/ActiveBuildersContent.tsx @@ -11,6 +11,9 @@ export const isActive = (stateFlags?: BuilderStateFlags) => { return activeFlags.every(flag => stateFlags?.[flag as keyof BuilderStateFlags]) } +const isDeactivated = ({ gauge, stateFlags }: Builder) => + !(gauge && stateFlags && stateFlags.activated && !stateFlags.communityApproved) + const filterFunction = (builder: Builder, status: string) => { if (status === 'all') return true if (status === 'active') return isActive(builder.stateFlags) @@ -31,6 +34,7 @@ export const ActiveBuildersContent = () => { true, ) useHandleErrors({ error, title: 'Error loading builders' }) + const filteredBuilders = builders.filter(isDeactivated) const status = [ { label: 'All', value: 'all' }, @@ -40,7 +44,7 @@ export const ActiveBuildersContent = () => { return ( <> - + {withSpinner(ActiveBuildersGrid)({ isLoading })} diff --git a/src/app/collective-rewards/shared/components/Table/TableCells.tsx b/src/app/collective-rewards/shared/components/Table/TableCells.tsx index 9f1c90e6..775cecdc 100644 --- a/src/app/collective-rewards/shared/components/Table/TableCells.tsx +++ b/src/app/collective-rewards/shared/components/Table/TableCells.tsx @@ -102,7 +102,7 @@ export const BuilderNameCell: FC = ({
- +