From 50ff4afb5c3905c07e45e429037c19d8571feb0d Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Wed, 27 Mar 2019 16:40:57 +0100 Subject: [PATCH] Allow bond (bondId can be null) --- packages/app-staking/src/Account/Bonding.tsx | 2 +- packages/app-staking/src/Account/index.tsx | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/app-staking/src/Account/Bonding.tsx b/packages/app-staking/src/Account/Bonding.tsx index f5afd757f9..efa2d4d3a2 100644 --- a/packages/app-staking/src/Account/Bonding.tsx +++ b/packages/app-staking/src/Account/Bonding.tsx @@ -12,7 +12,7 @@ import translate from '../translate'; type Props = I18nProps & { accountId: string, - bondedId: string, + bondedId: string | null, isOpen: boolean, onClose: () => void }; diff --git a/packages/app-staking/src/Account/index.tsx b/packages/app-staking/src/Account/index.tsx index 4b9db6392d..a283f00028 100644 --- a/packages/app-staking/src/Account/index.tsx +++ b/packages/app-staking/src/Account/index.tsx @@ -106,10 +106,6 @@ class Account extends React.PureComponent { const { accountId } = this.props; const { bondedId, isBondingOpen } = this.state; - if (!bondedId) { - return null; - } - return (