Remove less-than-usefull unlock check (#3558)

This commit is contained in:
Jaco Greeff 2020-08-28 15:55:29 +02:00 committed by GitHub
parent 813343846e
commit 2086d9ded1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,7 +121,7 @@ function Account ({ account: { address, meta }, className = '', delegation, filt
bestNumber && democracyLocks && setUnlockableIds(
(prev): DemocracyUnlockable => {
const ids = democracyLocks
.filter(({ balance, isFinished, unlockAt }) => isFinished && (balance.isMax() || bestNumber.gt(unlockAt)))
.filter(({ isFinished, unlockAt }) => isFinished && bestNumber.gt(unlockAt))
.map(({ referendumId }) => referendumId);
if (JSON.stringify(prev.ids) === JSON.stringify(ids)) {