* misc: Minor issues found whilst working on #1001 * restore no newline
This commit is contained in:
parent
2c9235e19f
commit
653fd09d2b
@ -112,7 +112,7 @@ class Staking extends React.PureComponent<Props, State> {
|
||||
/>
|
||||
<InputAddress
|
||||
className='medium'
|
||||
defaultValue={stashId}
|
||||
defaultValue={stashId.toString()}
|
||||
isDisabled
|
||||
label={t('stash account')}
|
||||
/>
|
||||
|
||||
@ -311,7 +311,7 @@ class Account extends React.PureComponent<Props, State> {
|
||||
}
|
||||
|
||||
private renderButtons () {
|
||||
const { accountId, controllerId, sessionId, staking_nominators, staking_validators,stashId, freeBalance, staking_ledger, t } = this.props;
|
||||
const { accountId, controllerId, sessionId, staking_nominators, staking_validators, stashId, freeBalance, staking_ledger, t } = this.props;
|
||||
const buttons = [];
|
||||
|
||||
if (!stashId) {
|
||||
@ -329,12 +329,12 @@ class Account extends React.PureComponent<Props, State> {
|
||||
// staking_ledger.total gives the total amount that can be slashed (any active amount + what is being unlocked)
|
||||
if (freeBalance && staking_ledger && staking_ledger.total && (freeBalance.gt(staking_ledger.total))) {
|
||||
buttons.push(
|
||||
<Button
|
||||
isPrimary
|
||||
key='bond'
|
||||
onClick={this.toggleBondExtra}
|
||||
label={t('Bond Additional')}
|
||||
/>
|
||||
<Button
|
||||
isPrimary
|
||||
key='bond'
|
||||
onClick={this.toggleBondExtra}
|
||||
label={t('Bond Additional')}
|
||||
/>
|
||||
);
|
||||
}
|
||||
// don't show the `unbond` button if there's nothing to unbond
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# Staking
|
||||
|
||||
Welcome to the staking module. Here you can see an overview of all the validators on the network and participate in the network as either as validator (running a node that helps secure the network), or a nominator (adding funds to help secure the network).
|
||||
Welcome to the staking module. Here you can see an overview of all the validators on the network and participate in the network as either a validator (running a node that helps secure the network), or a nominator (adding funds to help secure the network).
|
||||
|
||||
Validators and nominators earn rewards at the end of an era: the rewards are split between the validators and nominators for that validator, in proportion to the amount bonded by each individual.
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user