Hide unbond funds when active is 0 (#3115)

This commit is contained in:
Jaco Greeff 2020-07-03 08:49:19 +02:00 committed by GitHub
parent ccfada0da9
commit a6d81c9530
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -246,7 +246,7 @@ function Account ({ className = '', info: { controllerId, destination, destinati
{t<string>('Bond more funds')}
</Menu.Item>
<Menu.Item
disabled={!isOwnController}
disabled={!isOwnController || !stakingAccount || !stakingAccount.stakingLedger || stakingAccount.stakingLedger.active.isEmpty}
onClick={toggleUnbond}
>
{t<string>('Unbond funds')}