From 3d4a903fdcae475c65de02b91a6b8108dc9165ad Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Mon, 29 Jun 2020 06:40:51 +0200 Subject: [PATCH] Vesting appear logic (try #3) (#3087) --- packages/page-accounts/src/Accounts/Account.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/page-accounts/src/Accounts/Account.tsx b/packages/page-accounts/src/Accounts/Account.tsx index 75ee91d226..a84cc6c0e6 100644 --- a/packages/page-accounts/src/Accounts/Account.tsx +++ b/packages/page-accounts/src/Accounts/Account.tsx @@ -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() );