misc: Minor issues found whilst working on #1001 (#1095)

* misc: Minor issues found whilst working on #1001

* restore no newline
This commit is contained in:
Luke Schoen 2019-05-07 10:00:12 +02:00 committed by Jaco Greeff
parent 2c9235e19f
commit 653fd09d2b
3 changed files with 9 additions and 9 deletions

View File

@ -112,7 +112,7 @@ class Staking extends React.PureComponent<Props, State> {
/>
<InputAddress
className='medium'
defaultValue={stashId}
defaultValue={stashId.toString()}
isDisabled
label={t('stash account')}
/>

View File

@ -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

View File

@ -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.