Skip to content

Commit

Permalink
Vesting appear logic (try #3) (polkadot-js#3087)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacogr committed Jun 29, 2020
1 parent cafed86 commit 3d4a903
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/page-accounts/src/Accounts/Account.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ function Account ({ account: { address, meta }, className = '', filter, isFavori
useEffect((): void => {
if (balancesAll) {
setBalance(address, balancesAll.freeBalance);
setVestingTx(() =>
balancesAll.vestingLocked.isZero() && api.api.tx.vesting?.vest
api.api.tx.vesting?.vest && setVestingTx(() =>
balancesAll.vestingLocked.isZero()
? null
: api.api.tx.vesting.vest()
);
Expand Down

0 comments on commit 3d4a903

Please sign in to comment.