From f70c1fcf64e4628685aba17539d8b1cac28d64b5 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Wed, 27 Mar 2019 08:54:29 +0100 Subject: [PATCH] Display controller only if no bonding (#851) --- package.json | 6 ++--- packages/app-staking/src/Account/index.tsx | 19 +++++++------- yarn.lock | 30 +++++++++++----------- 3 files changed, 27 insertions(+), 28 deletions(-) diff --git a/package.json b/package.json index 5c45d8fa0d..3dbb99a671 100644 --- a/package.json +++ b/package.json @@ -11,10 +11,10 @@ ], "resolutions": { "@polkadot/api": "^0.51.1", - "@polkadot/keyring": "^0.41.1", + "@polkadot/keyring": "^0.42.0-beta.0", "@polkadot/types": "^0.51.1", - "@polkadot/util": "^0.41.1", - "@polkadot/util-crypto": "^0.41.1", + "@polkadot/util": "^0.42.0-beta.0", + "@polkadot/util-crypto": "^0.42.0-beta.0", "babel-core": "^7.0.0-bridge.0", "rxjs": "^6.4.0", "typescript": "^3.3.4000" diff --git a/packages/app-staking/src/Account/index.tsx b/packages/app-staking/src/Account/index.tsx index a3383e93e3..9dfb653f7f 100644 --- a/packages/app-staking/src/Account/index.tsx +++ b/packages/app-staking/src/Account/index.tsx @@ -233,18 +233,8 @@ class Account extends React.PureComponent { const buttons = []; if (!stashId) { - buttons.push( -