Ignore bounty isProposed in treasury calcs (#6885)
This commit is contained in:
parent
0f12911710
commit
1334a2de24
@ -76,8 +76,8 @@ function useTreasuryImpl (): Result {
|
||||
bounties &&
|
||||
setResult((prev) => ({
|
||||
...prev,
|
||||
pendingBounties: bounties.reduce((total, { bounty: { value } }) =>
|
||||
total.iadd(value), new BN(0)
|
||||
pendingBounties: bounties.reduce((total, { bounty: { status, value } }) =>
|
||||
total.iadd(status.isProposed ? BN_ZERO : value), new BN(0)
|
||||
)
|
||||
}));
|
||||
}, [bounties]);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user